From 952822ad5d391cb373b64750ee602ef2ee9f2d66 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sun, 29 Dec 2024 21:02:11 -0800 Subject: [PATCH] refac --- src/lib/components/chat/Chat.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index bc4b49b76..6e0636c2c 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -890,7 +890,7 @@ return null; }); - if (res !== null) { + if (res !== null && res.messages) { // Update chat history with the new messages for (const message of res.messages) { history.messages[message.id] = {