From 216c3e75eb68c86284f51c25c9556d6550af2090 Mon Sep 17 00:00:00 2001 From: KoloMl Date: Sun, 26 May 2024 05:08:28 +0400 Subject: [PATCH] Fix active profile not resetting due to last profile id default value --- src/lib/components/MaintenancePopup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/MaintenancePopup.js b/src/lib/components/MaintenancePopup.js index fd6f188..e1800a1 100644 --- a/src/lib/components/MaintenancePopup.js +++ b/src/lib/components/MaintenancePopup.js @@ -244,7 +244,7 @@ export class MaintenancePopup extends BaseComponent { * @return {function(): void} Unsubscribe function. Call it to stop watching for changes. */ static #watchActiveProfile(callback) { - let lastActiveProfileId = null; + let lastActiveProfileId; const unsubscribeFromProfilesChanges = MaintenanceProfile.subscribe(profiles => { if (lastActiveProfileId) {