diff --git a/src/components/graph/SelectionOverlay.vue b/src/components/graph/SelectionOverlay.vue index 633aec123..371c16b47 100644 --- a/src/components/graph/SelectionOverlay.vue +++ b/src/components/graph/SelectionOverlay.vue @@ -38,10 +38,12 @@ const positionSelectionOverlay = (canvas: LGraphCanvas) => { visible.value = true const bounds = createBounds(selectedItems) - updatePosition({ - pos: [bounds[0], bounds[1]], - size: [bounds[2], bounds[3]] - }) + if (bounds) { + updatePosition({ + pos: [bounds[0], bounds[1]], + size: [bounds[2], bounds[3]] + }) + } } // Register listener on canvas creation.