diff --git a/frontend/src/components/falukant/StatusBar.vue b/frontend/src/components/falukant/StatusBar.vue index edeb363..8b01528 100644 --- a/frontend/src/components/falukant/StatusBar.vue +++ b/frontend/src/components/falukant/StatusBar.vue @@ -60,9 +60,9 @@ export default { }, beforeUnmount() { if (this.socket) { - this.socket.off("falukantUpdateStatus", this.fetchStatus); - this.socket.off("stock_change", this.fetchStatus); - this.socket.off("familychanged", this.fetchStatus); + this.socket.off("falukantUpdateStatus"); + this.socket.off("stock_change"); + this.socket.off("familychanged"); } }, methods: { @@ -130,7 +130,7 @@ export default { case 'falukantUpdateStatus': case 'stock_change': case 'familychanged': - this.loadStatus(); + this.fetchStatus(); break; default: console.log('⚠️ StatusBar: Unbekanntes Event:', eventData.event);