Skip to content

Commit

Permalink
fix(cloud-image-editor): fix initEditor type (#502)
Browse files Browse the repository at this point in the history
  • Loading branch information
nd0ut authored Jul 24, 2023
1 parent 5f9ad79 commit 6c222d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions solutions/cloud-image-editor/CloudImageEditor.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-check
import { CloudImageEditorBlock } from '../../blocks/CloudImageEditor/src/CloudImageEditorBlock.js';
import { shadowed } from '../../blocks/ShadowWrapper/ShadowWrapper.js';
export class CloudImageEditor extends shadowed(CloudImageEditorBlock) {
Expand All @@ -12,9 +13,9 @@ export class CloudImageEditor extends shadowed(CloudImageEditorBlock) {
this.initEditor();
}

initEditor() {
async initEditor() {
if (this.__shadowReady) {
super.initEditor();
await super.initEditor();
}
}
}

0 comments on commit 6c222d5

Please sign in to comment.