From 2da2716844690b53ddca4f1b189242680c2da13f Mon Sep 17 00:00:00 2001 From: KoloMl Date: Tue, 12 Nov 2024 13:50:44 +0400 Subject: [PATCH] Fixed profile not being refreshed after initial page load --- src/lib/components/MaintenancePopup.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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();