diff --git a/front/src/Stores/Utils/MapStore.ts b/front/src/Stores/Utils/MapStore.ts index 63c6c819..54c7b793 100644 --- a/front/src/Stores/Utils/MapStore.ts +++ b/front/src/Stores/Utils/MapStore.ts @@ -96,6 +96,7 @@ export class MapStore extends Map implements Readable> { const unsubscribe = storeByKey.subscribe((newMapValue) => { if (unsubscribeDeepStore) { unsubscribeDeepStore(); + unsubscribeDeepStore = undefined; } if (newMapValue === undefined) { set(undefined); @@ -115,6 +116,7 @@ export class MapStore extends Map implements Readable> { unsubscribe(); if (unsubscribeDeepStore) { unsubscribeDeepStore(); + unsubscribeDeepStore = undefined; } }; });