From 6a675d367d1efe64de8607732263411ca54c8fb0 Mon Sep 17 00:00:00 2001 From: rushillshah Date: Tue, 26 Nov 2024 17:57:41 +0530 Subject: [PATCH] fix floating variable issue --- packages/react/src/ReactNodeViewRenderer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react/src/ReactNodeViewRenderer.tsx b/packages/react/src/ReactNodeViewRenderer.tsx index 4f16c0c8c9..56a19bedb5 100644 --- a/packages/react/src/ReactNodeViewRenderer.tsx +++ b/packages/react/src/ReactNodeViewRenderer.tsx @@ -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 }