Timothy Jaeryang Baek il y a 7 mois
Parent
commit
952822ad5d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      src/lib/components/chat/Chat.svelte

+ 1 - 1
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] = {