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