From 6c222d595e9a0e578473af616a45ba1d5fda9884 Mon Sep 17 00:00:00 2001 From: Aleksandr Grenishin Date: Mon, 24 Jul 2023 15:51:31 +0300 Subject: [PATCH] fix(cloud-image-editor): fix `initEditor` type (#502) --- solutions/cloud-image-editor/CloudImageEditor.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/solutions/cloud-image-editor/CloudImageEditor.js b/solutions/cloud-image-editor/CloudImageEditor.js index 4fec75a54..f056b5824 100644 --- a/solutions/cloud-image-editor/CloudImageEditor.js +++ b/solutions/cloud-image-editor/CloudImageEditor.js @@ -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) { @@ -12,9 +13,9 @@ export class CloudImageEditor extends shadowed(CloudImageEditorBlock) { this.initEditor(); } - initEditor() { + async initEditor() { if (this.__shadowReady) { - super.initEditor(); + await super.initEditor(); } } }