소스 검색

fix: image

Timothy J. Baek 10 달 전
부모
커밋
1b100660af
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      src/lib/components/chat/Chat.svelte

+ 4 - 1
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(