Fix active profile not resetting due to last profile id default value

This commit is contained in:
koloml committed 2024-05-26 05:08:28 +04:00
1 parent 031ee24e08
commit 216c3e75eb
1 file changed
+1 -1
+1 -1
View File
@@ -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) {