From 807cfdecfb7151295da5f36f94f55c4fb0e9380a Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Tue, 18 Jun 2024 17:09:29 -0700 Subject: [PATCH] fix --- src/lib/components/chat/Chat.svelte | 2 +- src/lib/components/chat/MessageInput.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 7c8c1ff0b..137eebb5d 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -323,7 +323,7 @@ } else if (messages.length != 0 && messages.at(-1).done != true) { // Response not done console.log('wait'); - } else if (files.length > 0 && files.filter((file) => file.status === 'processed').length > 0) { + } else if (files.length > 0 && files.filter((file) => file.status !== 'processed').length > 0) { // Upload not done toast.error( $i18n.t( diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index b8da7a2fa..e18f2f67e 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -363,7 +363,7 @@ files = [ ...files, { - type: e?.detail?.type ?? 'doc', + type: e?.detail?.type ?? 'file', ...e.detail, status: 'processed' }