Skip to content

Commit

Permalink
fix floating variable issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rushillshah committed Nov 26, 2024
1 parent 7870a77 commit 6a675d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/ReactNodeViewRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,13 +193,13 @@ export class ReactNodeView<
}

if (from <= pos && to >= pos + this.node.nodeSize) {
if (this.renderer.props.selected) {
if (this?.renderer?.props?.selected) {
return
}

this.selectNode()
} else {
if (!this.renderer.props.selected) {
if (!this?.renderer?.props?.selected) {
return
}

Expand Down

0 comments on commit 6a675d3

Please sign in to comment.