update: use tryOnMounted
Signed-off-by: Braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -102,7 +102,7 @@ const updateNodeDimensions = ({ nodeElement, forceUpdate }: NodeDimensionUpdate)
|
||||
}
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
tryOnMounted(() => {
|
||||
watch(
|
||||
[() => props.node.__vf.width, () => props.node.__vf.height],
|
||||
() => {
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user