Fixed profile not being refreshed after initial page load

This commit is contained in:
koloml committed 2024-11-12 13:50:44 +04:00
1 parent e83d70fbd9
commit 2da2716844
1 file changed
+7 -1
+7 -1
View File
@@ -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();