Skip to content

Commit

Permalink
fix: #358
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsonliu committed Nov 26, 2022
1 parent d91173f commit 56ceedc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ export default class Editor {
if (fileType === '' || /^text/i.test(fileType)) {
continue;
}
this.options.fileUpload(file, (url, params) => {
this.options.fileUpload(file, (url, params = {}) => {
if (typeof url !== 'string') {
return;
}
Expand Down

0 comments on commit 56ceedc

Please sign in to comment.