From d25248e068f927e388578a2e118bc22567759bde Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Thu, 17 Oct 2024 16:14:59 +0000 Subject: [PATCH] Fix Links.vue checking startNode twice instead of both nodes Thanks escapee for reporting the issue! --- src/features/links/Links.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/links/Links.vue b/src/features/links/Links.vue index dafab2b..f9b89a0 100644 --- a/src/features/links/Links.vue +++ b/src/features/links/Links.vue @@ -36,7 +36,7 @@ onMounted(() => (boundingRect.value = resizeListener.value?.getBoundingClientRec const validLinks = computed(() => { const n = nodes.value; return ( - links.value?.filter(link => n[link.startNode.id]?.rect && n[link.startNode.id]?.rect) ?? [] + links.value?.filter(link => n[link.startNode.id]?.rect && n[link.endNode.id]?.rect) ?? [] ); }); -- 2.45.2