From 97e3f24bdf2529d72920319cfb4aedc7da40eb6c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 26 Aug 2026 15:02:19 +0300 Subject: [PATCH] dang, ai was right --- src/stores/streaming.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/stores/streaming.js b/src/stores/streaming.js index 9233124b5..a360731bf 100644 --- a/src/stores/streaming.js +++ b/src/stores/streaming.js @@ -101,7 +101,7 @@ export const useStreamingStore = defineStore('streaming', { this.subscriptions.get(stream.name).delete(stream.argument) } - if (this.state === WSConnectionStatus.JOINED) { + if (stream && this.state === WSConnectionStatus.JOINED) { this.socket.unsubscribe(...this.getSubArgs(stream)) } }, @@ -131,7 +131,6 @@ export const useStreamingStore = defineStore('streaming', { }, getSubArgs(stream) { - if (stream === undefined) return [] const argumentKey = ARGUMENT_MAP[stream.name] const args = argumentKey ? {