Skip to content

Commit 0ffc2f1

Browse files
committed
fix(core): check if node el exists before observing
Signed-off-by: braks <[email protected]>
1 parent 2b222c2 commit 0ffc2f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/components/Nodes/NodeWrapper.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ onUpdateNodeInternals((updateIds) => {
9494
9595
watchEffect(
9696
(onCleanup) => {
97-
if (!node.hidden) {
97+
if (!node.hidden && nodeElement.value) {
9898
props.resizeObserver.observe(nodeElement.value as HTMLDivElement)
9999
100100
onCleanup(() => props.resizeObserver.unobserve(nodeElement.value as HTMLDivElement))

0 commit comments

Comments
 (0)