Skip to content

Commit

Permalink
fix: Fix destroy error before initialization (#195) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Jungwoo-An authored May 8, 2022
1 parent ea90e26 commit f5d4731
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/@react-editor-js/client/src/client-editor-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export class ClientEditorCore implements EditorCore {
}

public async destroy() {
await this._editorJS.isReady
await this._editorJS.destroy()
}

Expand Down

0 comments on commit f5d4731

Please sign in to comment.