Fix Links.vue checking startNode twice instead of both nodes
All checks were successful
Run Tests / test (pull_request) Successful in 3m34s
All checks were successful
Run Tests / test (pull_request) Successful in 3m34s
Thanks escapee for reporting the issue!
This commit is contained in:
parent
c6389317d0
commit
d25248e068
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue