fix: image

This commit is contained in:
Timothy J. Baek 2024-06-19 13:31:01 -07:00
parent 1007f67ab1
commit 1b100660af

View File

@ -323,7 +323,10 @@
} else if (messages.length != 0 && messages.at(-1).done != true) { } else if (messages.length != 0 && messages.at(-1).done != true) {
// Response not done // Response not done
console.log('wait'); 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 // Upload not done
toast.error( toast.error(
$i18n.t( $i18n.t(