diff --git a/src/lib/components/chat/Messages/MultiResponseMessages.svelte b/src/lib/components/chat/Messages/MultiResponseMessages.svelte index 212bd8866..7f0991751 100644 --- a/src/lib/components/chat/Messages/MultiResponseMessages.svelte +++ b/src/lib/components/chat/Messages/MultiResponseMessages.svelte @@ -211,7 +211,7 @@ {#if !readOnly && isLastMessage} {#if !Object.keys(groupedMessages).find((modelIdx) => { const { messages } = groupedMessages[modelIdx]; - return !messages[groupedMessagesIdx[modelIdx]].done; + return !messages[groupedMessagesIdx[modelIdx]]?.done ?? false; })}