chore(core): use getter for edge/node types

This commit is contained in:
braks
2022-11-08 12:53:13 +01:00
committed by Braks
parent 7908e0224e
commit 3a5d06d3b1
2 changed files with 5 additions and 3 deletions
@@ -28,6 +28,7 @@ const {
updateNodeDimensions,
onUpdateNodeInternals,
getIntersectingNodes,
getNodeTypes,
} = $(useVueFlow())
const node = $(useVModel(props, 'node'))
@@ -218,7 +219,7 @@ export default {
@dblclick="onDoubleClick"
>
<component
:is="type === false ? defaultNodeTypes.default : type"
:is="type === false ? getNodeTypes.default : type"
:id="node.id"
:type="node.type"
:data="node.data"