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:44:45 +01:00
committed by Braks
parent eb6f7a91f2
commit c528726f12
@@ -69,7 +69,7 @@ const EdgeWrapper = defineComponent({
}) })
return () => { return () => {
if (!sourceNode || !targetNode) return null if (!sourceNode || !targetNode || !edge) return null
let sourceNodeHandles let sourceNodeHandles
if (connectionMode.value === ConnectionMode.Strict) { if (connectionMode.value === ConnectionMode.Strict) {
@@ -109,6 +109,7 @@ const EdgeWrapper = defineComponent({
'g', 'g',
{ {
'ref': edgeEl, 'ref': edgeEl,
'key': props.id,
'data-id': props.id, 'data-id': props.id,
'class': [ 'class': [
'vue-flow__edge', 'vue-flow__edge',