From a3e658ab93b33a50efbb53010b97916e5b3d5982 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 3 Apr 2026 00:03:33 +0200 Subject: [PATCH] Fix optional chaining in entity selection --- tests/e2e/entities-foundation.e2e.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e/entities-foundation.e2e.ts b/tests/e2e/entities-foundation.e2e.ts index b506eb07..8717ed2b 100644 --- a/tests/e2e/entities-foundation.e2e.ts +++ b/tests/e2e/entities-foundation.e2e.ts @@ -31,7 +31,7 @@ test("user can place and select typed entities from the entity foundation workfl await viewportCanvas.click({ position: { x: 124, y: 108 } }); const soundEmitterSnapshot = await getEditorStoreSnapshot(page); const selectedSoundEmitterId = - soundEmitterSnapshot.selection.kind === "entities" ? soundEmitterSnapshot.selection.ids[0] ?? null : null; + soundEmitterSnapshot.selection.kind === "entities" ? soundEmitterSnapshot.selection.ids?.[0] ?? null : null; expect(selectedSoundEmitterId).not.toBeNull();