Fix Links.vue checking startNode twice instead of both nodes #86

Merged
thepaperpilot merged 2 commits from thepaperpilot-patch-1 into main 2024-10-17 16:50:56 +00:00
Showing only changes of commit d25248e068 - Show all commits

View file

@ -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>