FIX: upload errors were sometimes not displayed properly (#10605)

This commit is contained in:
Faizaan Gagan 2020-09-14 12:43:38 +05:30 committed by GitHub
parent e169e5a32f
commit 21adc07057
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,9 +108,7 @@ export default Mixin.create({
});
$upload.on("fileuploadfail", (e, data) => {
if (!data) {
displayErrorForUpload(data, this.siteSettings);
}
displayErrorForUpload(data, this.siteSettings);
reset();
});
}),