chore: Remove casting node/edge to null on unmount
This commit is contained in:
@@ -117,10 +117,6 @@ onMounted(() => {
|
||||
)
|
||||
})
|
||||
|
||||
onUnmounted(() => {
|
||||
edge.value = null
|
||||
})
|
||||
|
||||
const slots = inject(Slots)
|
||||
|
||||
const name = ref(edge.value.type ?? 'default')
|
||||
|
||||
@@ -97,7 +97,6 @@ watch(
|
||||
|
||||
onUnmounted(() => {
|
||||
nodeElement.value = undefined
|
||||
node.value = null
|
||||
})
|
||||
|
||||
store.updateNodePosition({ id: node.value.id, diff: { x: 0, y: 0 } })
|
||||
|
||||
Reference in New Issue
Block a user