Skip to content

Commit

Permalink
fix(plugin): 修复serverPlugin判断不严谨导致报错
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiu-Jun committed Jul 21, 2024
1 parent dddafdf commit 1bf8dfe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/ServersPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ class ServersPlugin {
// 加载后钩子
this.editor.hooksEntity.hookImportAfter.callAsync(jsonFile, () => {
// 修复导入带水印的json无法清除问题 #359
this.editor?.updateDrawStatus(!!temp['overlayImage']);
this.editor?.updateDrawStatus &&
typeof this.editor.updateDrawStatus === 'function' &&
this.editor.updateDrawStatus(!!temp['overlayImage']);
this.canvas.renderAll();
callback && callback();
this.editor.emit('loadJson');
Expand Down

0 comments on commit 1bf8dfe

Please sign in to comment.