We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cda947 commit bea4a1dCopy full SHA for bea4a1d
1 file changed
editor/client/panning-and-selection.ts
@@ -628,7 +628,7 @@ export class CameraPanBehavior extends Behavior {
628
return 0;
629
});
630
631
- if (entities[0].parent instanceof EmptyFacade) {
+ if (entities[0] && entities[0].parent instanceof EmptyFacade) {
632
if (this.#lastParentPrepended !== entities[0].parent) {
633
this.#lastParentPrepended = entities[0].parent;
634
entities.unshift(entities[0].parent);
0 commit comments