From 03184b0321b2df78af1ce696080b7b3fddb10476 Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Sun, 30 Nov 2025 21:08:49 +0100 Subject: [PATCH] fix: prevent accessing undefined index --- apps/client/src/features/operator/Operator.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/features/operator/Operator.tsx b/apps/client/src/features/operator/Operator.tsx index 21d952596..9d953c8af 100644 --- a/apps/client/src/features/operator/Operator.tsx +++ b/apps/client/src/features/operator/Operator.tsx @@ -173,7 +173,7 @@ function Operator({ rundown, rundownMetadata, customFields, settings }: Operator if (isOntimeGroup(entry)) { const { isPast } = rundownMetadata[entry.id]; - const isCurrentParent = selectedEventId ? rundownMetadata[selectedEventId].groupId === entry.id : false; + const isCurrentParent = selectedEventId ? rundownMetadata[selectedEventId]?.groupId === entry.id : false; if (hidePast && isPast && !isCurrentParent) { return null;