We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0a9c4d commit f382eb5Copy full SHA for f382eb5
adminforth/spa/src/stores/core.ts
@@ -86,7 +86,9 @@ export const useCoreStore = defineStore('core', () => {
86
}
87
async function subscribeToMenuBadges() {
88
const processItem = (mi: AdminForthConfigMenuItem) => {
89
- if (mi.badge) {
+
90
+ // console.log('🔔 subscribeToMenuBadges', mi.badge, JSON.stringify(mi));
91
+ if (mi.badge !== undefined) {
92
websocket.subscribe(`/opentopic/update-menu-badge/${mi.itemId}`, ({ badge }) => {
93
mi.badge = badge;
94
});
0 commit comments