From 7332831917c286d662ec121322ccf0b398697f47 Mon Sep 17 00:00:00 2001 From: Senryoku Date: Tue, 17 Oct 2023 18:13:30 +0200 Subject: [PATCH] [Client] Fix draft queues: Make sure sessionID isn't set when loading the /draftqueue page. --- client/src/App.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/App.ts b/client/src/App.ts index b1edf4148..dffee94e7 100644 --- a/client/src/App.ts +++ b/client/src/App.ts @@ -252,12 +252,12 @@ export default defineComponent({ const storedSessionSettings = localStorage.getItem(localStorageSessionSettingsKey) ?? "{}"; - const query = { + const query: Record = { userID: userID, userName: userName, sessionSettings: storedSessionSettings, - sessionID: sessionID, }; + if (sessionID) query.sessionID = sessionID; // Note: Setting sessionID to undefined will send it as the "undefined" string, and that's not what we want... // Socket Setup const socket: Socket = io({