Skip to content

Commit 780a733

Browse files
authored
Merge pull request #286 from devforth/AdminForth/637
fix: unsubscribe before subscribing in adminforth.menu.refreshMenuBages()
2 parents 810b938 + bf335dd commit 780a733

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)