mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
FIX: Ensure method exists before calling
`_perFileData` is not always defined and uploads failed when it is not.
This commit is contained in:
parent
5c23c6cdab
commit
64b089072a
|
@ -133,9 +133,11 @@ export default Mixin.create(UppyS3Multipart, {
|
|||
return false;
|
||||
}
|
||||
|
||||
Object.values(files).forEach((file) => {
|
||||
deepMerge(file.meta, this._perFileData());
|
||||
});
|
||||
if (this._perFileData) {
|
||||
Object.values(files).forEach((file) => {
|
||||
deepMerge(file.meta, this._perFileData());
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user