Skip to content

Commit

Permalink
fix(extension): null exception in menu bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
mekery committed Jan 17, 2021
1 parent 821d394 commit 3013a4d
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/components/menubars/OEditorMenuBubble.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,15 @@ export default {
return !this.backToMain && this.isLinkSelected
},
isLinkSelected () {
const { state } = this.editor
const { tr } = state
const { selection } = tr
if (this.editor) {
const { state } = this.editor
const { tr } = state
const { selection } = tr
return this.isLinkSelection(selection)
return this.isLinkSelection(selection)
} else {
return false
}
}
},
watch: {
Expand Down

0 comments on commit 3013a4d

Please sign in to comment.