From 1f66bbba98633133da7b6db82ad50b18feef51d9 Mon Sep 17 00:00:00 2001 From: Brandon Hulston Date: Wed, 17 Jan 2024 02:24:17 -0700 Subject: [PATCH] Better solution to handle edge cases --- src/routes/(app)/c/[id]/+page.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/(app)/c/[id]/+page.svelte b/src/routes/(app)/c/[id]/+page.svelte index 593a7a78..c4774aaa 100644 --- a/src/routes/(app)/c/[id]/+page.svelte +++ b/src/routes/(app)/c/[id]/+page.svelte @@ -200,7 +200,7 @@ await chatId.set('local'); } await tick(); - } else if (chat.chat["models"][0] == "") { + } else if (chat.chat["models"] != selectedModels) { // If model is not saved in DB, then save selectedmodel when message is sent chat = await updateChatById(localStorage.token, $chatId, {