From 2b861c3fcf0ad3862dfee2c7532d9730e5afef3a 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) ?? [] ); });