refac: disable continuing with error message

This commit is contained in:
Timothy J. Baek 2024-06-20 02:47:27 -07:00
parent f14ca48334
commit 3101ff143b

View File

@ -323,6 +323,13 @@
} else if (messages.length != 0 && messages.at(-1).done != true) {
// Response not done
console.log('wait');
} else if (messages.length != 0 && messages.at(-1).error) {
// Error in response
toast.error(
$i18n.t(
`Oops! There was an error in the previous response. Please try again or contact admin.`
)
);
} else if (
files.length > 0 &&
files.filter((file) => file.type !== 'image' && file.status !== 'processed').length > 0