Skip to content

Commit 3ec7d7f

Browse files
committed
fix: return in views when no boxes found
1 parent 4f87aae commit 3ec7d7f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/core/src/core/Views/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,8 @@ export class Views extends Component {
201201
boxes.push({ id, box: model.box });
202202
}
203203

204+
if (boxes.length === 0) return result;
205+
204206
if (combine) {
205207
const boxer = this.components.get(BoundingBoxer);
206208
boxer.list.clear();

0 commit comments

Comments
 (0)