mirror of
https://github.com/discourse/discourse.git
synced 2025-06-24 04:31:33 +08:00
FIX: upload errors were sometimes not displayed properly (#10605)
This commit is contained in:
@ -108,9 +108,7 @@ export default Mixin.create({
|
||||
});
|
||||
|
||||
$upload.on("fileuploadfail", (e, data) => {
|
||||
if (!data) {
|
||||
displayErrorForUpload(data, this.siteSettings);
|
||||
}
|
||||
displayErrorForUpload(data, this.siteSettings);
|
||||
reset();
|
||||
});
|
||||
}),
|
||||
|
Reference in New Issue
Block a user