fix(core): prevent rendering edges that have been removed
Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com>
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
Reference in New Issue
Block a user