Skip to content

Commit

Permalink
Fix Links.vue checking startNode twice instead of both nodes
Browse files Browse the repository at this point in the history
Thanks escapee for reporting the issue!
  • Loading branch information
thepaperpilot committed Oct 17, 2024
1 parent 9debfe6 commit 2b861c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/links/Links.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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) ?? []
);
});
</script>
Expand Down

0 comments on commit 2b861c3

Please sign in to comment.