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

Fix active profile not resetting due to last profile id default value

This commit is contained in:
2024-05-26 05:08:28 +04:00
parent 031ee24e08
commit 216c3e75eb

View File

@@ -244,7 +244,7 @@ export class MaintenancePopup extends BaseComponent {
* @return {function(): void} Unsubscribe function. Call it to stop watching for changes.
*/
static #watchActiveProfile(callback) {
let lastActiveProfileId = null;
let lastActiveProfileId;
const unsubscribeFromProfilesChanges = MaintenanceProfile.subscribe(profiles => {
if (lastActiveProfileId) {