Skip to content

Commit bf335dd

Browse files
author
yaroslav8765
committed
fix: unsubscribe before subscribing in adminforth.menu.refreshMenuBadges()
1 parent 2686e9b commit bf335dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/spa/src/stores/core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const useCoreStore = defineStore('core', () => {
118118
item.badge = badge;
119119
}
120120
});
121-
121+
websocket.unsubscribeAll();
122122
subscribeToMenuBadges();
123123

124124
}

0 commit comments

Comments
 (0)