fix(front/file-uploader): do not add failed uploads to finished uploads list

This commit is contained in:
Alice Gaudon 2022-03-02 11:07:27 +01:00
parent 5477c858ef
commit c906827fe1

View File

@ -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>