Merge pull request #48 from koloml/bugfix/force-reload-active-profile-on-change

Fixed profile not being refreshed after initial page load
This commit is contained in:
koloml authored and GitHub committed 2024-11-12 13:55:14 +04:00
commit 64dfac310e
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();