mirror of
https://github.com/koloml/furbooru-tagging-assistant.git
synced 2025-12-23 23:02:58 +00:00
Fix active profile not resetting due to last profile id default value
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user