fix(core): prevent rendering edges that have been removed

Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
braks
2023-02-10 15:30:10 +01:00
committed by Braks
parent eb6f7a91f2
commit c528726f12

View File

@@ -69,7 +69,7 @@ const EdgeWrapper = defineComponent({
})
return () => {
if (!sourceNode || !targetNode) return null
if (!sourceNode || !targetNode || !edge) return null
let sourceNodeHandles
if (connectionMode.value === ConnectionMode.Strict) {
@@ -109,6 +109,7 @@ const EdgeWrapper = defineComponent({
'g',
{
'ref': edgeEl,
'key': props.id,
'data-id': props.id,
'class': [
'vue-flow__edge',