diff --git a/src/features/links/Links.vue b/src/features/links/Links.vue index eccd7be..b5d7c1f 100644 --- a/src/features/links/Links.vue +++ b/src/features/links/Links.vue @@ -43,9 +43,9 @@ function updateNodes() { isDirty = false; nextTick(() => { boundingRect.value = resizeListener.value?.getBoundingClientRect(); - (Object.values(nodes.value) as FeatureNode[]).forEach( - node => (node.rect = node.element.getBoundingClientRect()) - ); + (Object.values(nodes.value) as FeatureNode[]) + .filter(n => n) // Sometimes the values become undefined + .forEach(node => (node.rect = node.element.getBoundingClientRect())); isDirty = true; }); }