refac/fix: folder direct file upload
This commit is contained in:
@@ -30,6 +30,13 @@
|
|||||||
|
|
||||||
const submitHandler = async () => {
|
const submitHandler = async () => {
|
||||||
loading = true;
|
loading = true;
|
||||||
|
|
||||||
|
if ((data?.files ?? []).some((file) => file.status === 'uploading')) {
|
||||||
|
toast.error($i18n.t('Please wait until all files are uploaded.'));
|
||||||
|
loading = false;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
await onSubmit({
|
await onSubmit({
|
||||||
name,
|
name,
|
||||||
data
|
data
|
||||||
|
|||||||
Reference in New Issue
Block a user