Skip to content

Commit f5d4731

Browse files
authored
fix: Fix destroy error before initialization (#195) [skip ci]
1 parent ea90e26 commit f5d4731

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/@react-editor-js/client/src/client-editor-core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export class ClientEditorCore implements EditorCore {
3030
}
3131

3232
public async destroy() {
33+
await this._editorJS.isReady
3334
await this._editorJS.destroy()
3435
}
3536

0 commit comments

Comments
 (0)