fix: older many model chat compatibility

This commit is contained in:
Timothy J. Baek 2024-08-22 00:03:58 +02:00
parent f036aa0a48
commit 8843898a8c

View File

@ -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;
})}
<div class="flex justify-end">
<div class="w-full">