Skip to content

Commit

Permalink
fix(chore): handle editor if it could not be initialized
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
  • Loading branch information
Florian Steffens committed Sep 14, 2023
1 parent 7a093d5 commit 5e1dec8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shared/components/ncEditor/NcEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default {
if (value === '') {
this.setupEditor()
} else {
this.editor.setContent(value)
this.editor?.setContent(value)
}
}
},
Expand All @@ -88,7 +88,7 @@ export default {
async mounted() {
this.localValue = this.text
await this.setupEditor()
this.editor.setContent(this.localValue, false)
this.editor?.setContent(this.localValue, false)
},
beforeDestroy() {
Expand Down

0 comments on commit 5e1dec8

Please sign in to comment.