Fix Links.vue checking startNode twice instead of both nodes
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m21s
Run Tests / test (push) Successful in 2m56s

Thanks escapee for reporting the issue!
This commit is contained in:
thepaperpilot 2024-10-17 16:14:59 +00:00
parent 9debfe6fb4
commit 2b861c3fcf

View file

@ -36,7 +36,7 @@ onMounted(() => (boundingRect.value = resizeListener.value?.getBoundingClientRec
const validLinks = computed(() => { const validLinks = computed(() => {
const n = nodes.value; const n = nodes.value;
return ( 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> </script>