chore: lint fixes

This commit is contained in:
Himanshu Kapoor
2022-03-31 22:18:40 +02:00
parent 285f89b5a9
commit 70dc4fc29f
2 changed files with 3 additions and 3 deletions

View File

@@ -180,7 +180,7 @@ export class BubbleMenuView {
} }
this.tippy?.setProps({ this.tippy?.setProps({
getReferenceClientRect: this.tippyOptions.getReferenceClientRect || () => { getReferenceClientRect: this.tippyOptions?.getReferenceClientRect || (() => {
if (isNodeSelection(state.selection)) { if (isNodeSelection(state.selection)) {
const node = view.nodeDOM(from) as HTMLElement const node = view.nodeDOM(from) as HTMLElement
@@ -190,7 +190,7 @@ export class BubbleMenuView {
} }
return posToDOMRect(view, from, to) return posToDOMRect(view, from, to)
}, }),
}) })
this.show() this.show()

View File

@@ -156,7 +156,7 @@ export class FloatingMenuView {
} }
this.tippy?.setProps({ this.tippy?.setProps({
getReferenceClientRect: this.tippyOptions.getReferenceClientRect || () => posToDOMRect(view, from, to), getReferenceClientRect: this.tippyOptions?.getReferenceClientRect || (() => posToDOMRect(view, from, to)),
}) })
this.show() this.show()