diff --git a/src/lib/components/MaintenancePopup.js b/src/lib/components/MaintenancePopup.js index bb967e5..25ee29c 100644 --- a/src/lib/components/MaintenancePopup.js +++ b/src/lib/components/MaintenancePopup.js @@ -286,7 +286,13 @@ export class MaintenancePopup extends BaseComponent { this.#maintenanceSettings .resolveActiveProfileAsObject() - .then(callback); + .then(profileOrNull => { + if (profileOrNull) { + lastActiveProfileId = profileOrNull.id; + } + + callback(profileOrNull); + }); return () => { unsubscribeFromProfilesChanges();