fix(front/file-uploader): do not add failed uploads to finished uploads list
This commit is contained in:
parent
5477c858ef
commit
c906827fe1
@ -42,7 +42,9 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onUploadEnd(fileName, finalUrl) {
|
function onUploadEnd(fileName, finalUrl) {
|
||||||
finishedFileUploads = [...finishedFileUploads, {name: fileName, finalUrl: finalUrl}];
|
if (finalUrl) {
|
||||||
|
finishedFileUploads = [...finishedFileUploads, {name: fileName, finalUrl: finalUrl}];
|
||||||
|
}
|
||||||
processNextUpload();
|
processNextUpload();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user