Commit 3101ff14 authored by Timothy J. Baek's avatar Timothy J. Baek
Browse files

refac: disable continuing with error message

parent f14ca483
...@@ -323,6 +323,13 @@ ...@@ -323,6 +323,13 @@
} 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 (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 ( } else if (
files.length > 0 && files.length > 0 &&
files.filter((file) => file.type !== 'image' && file.status !== 'processed').length > 0 files.filter((file) => file.type !== 'image' && file.status !== 'processed').length > 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment