fix(core): fall back to default node or edge type

This commit is contained in:
braks
2022-11-08 12:53:13 +01:00
committed by Braks
parent 2874cd969a
commit 6c738bfbfb
4 changed files with 21 additions and 21 deletions
@@ -143,7 +143,7 @@ const Wrapper = defineComponent({
'data-id': props.id,
'class': [
'vue-flow__edge',
`vue-flow__edge-${props.name}`,
`vue-flow__edge-${props.type === false ? 'default' : props.name}`,
{
updating: mouseOver,
selected: edge.selected,
@@ -161,7 +161,7 @@ const Wrapper = defineComponent({
[
updating
? null
: h(props.type as any, {
: h(props.type === false ? defaultEdgeTypes.default : props.type, {
id: props.id,
sourceNode: props.sourceNode,
targetNode: props.targetNode,