diff --git a/editor/src/components/canvas/gap-utils.ts b/editor/src/components/canvas/gap-utils.ts index b882f88a0264..e2e980f3e4d0 100644 --- a/editor/src/components/canvas/gap-utils.ts +++ b/editor/src/components/canvas/gap-utils.ts @@ -223,7 +223,7 @@ export function gridGapControlBoundsFromMetadata( const gridCellBounds = grid.specialSizeMeasurements.gridCellGlobalFrames - if (gridCellBounds == null) { + if (gridCellBounds == null || gridCellBounds.length == 0) { return emptyResult } const allCellsBound = canvasRectangle({