mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00: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) => {
|
||||
if (!data) {
|
||||
displayErrorForUpload(data, this.siteSettings);
|
||||
}
|
||||
displayErrorForUpload(data, this.siteSettings);
|
||||
reset();
|
||||
});
|
||||
}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user