From 1b100660af247afbc7d4fd37e66b903d52b19864 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Wed, 19 Jun 2024 13:31:01 -0700 Subject: [PATCH] fix: image --- src/lib/components/chat/Chat.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index 137eebb5da..b33b26fa30 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -323,7 +323,10 @@ } 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.type !== 'image' && file.status !== 'processed').length > 0 + ) { // Upload not done toast.error( $i18n.t(