diff --git a/src/components/Nodes/NodeWrapper.vue b/src/components/Nodes/NodeWrapper.vue index ef20338c..72b8f14e 100644 --- a/src/components/Nodes/NodeWrapper.vue +++ b/src/components/Nodes/NodeWrapper.vue @@ -102,7 +102,7 @@ const updateNodeDimensions = ({ nodeElement, forceUpdate }: NodeDimensionUpdate) } } -onMounted(() => { +tryOnMounted(() => { watch( [() => props.node.__vf.width, () => props.node.__vf.height], () => { diff --git a/src/container/SelectionPane/SelectionPane.vue b/src/container/SelectionPane/SelectionPane.vue index 2197292f..43b48ebf 100644 --- a/src/container/SelectionPane/SelectionPane.vue +++ b/src/container/SelectionPane/SelectionPane.vue @@ -37,7 +37,7 @@ const onWheel = (event: WheelEvent) => store.hooks.paneScroll.trigger(event) const userSelection = ref(false) -onMounted(() => { +tryOnMounted(() => { useKeyPress(props.deleteKeyCode, (keyPressed) => { if (keyPressed && props.selectedElements) { const selectedNodes = props.selectedElements.filter(isGraphNode)