1
0
mirror of https://github.com/koloml/furbooru-tagging-assistant.git synced 2025-12-23 23:02:58 +00:00

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:
2024-11-12 13:55:14 +04:00
committed by GitHub

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();