mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-08 15:59:16 +00:00
fix: prevent accessing undefined index
This commit is contained in:
committed by
Carlos Valente
parent
cd5af769ab
commit
03184b0321
@@ -173,7 +173,7 @@ function Operator({ rundown, rundownMetadata, customFields, settings }: Operator
|
|||||||
if (isOntimeGroup(entry)) {
|
if (isOntimeGroup(entry)) {
|
||||||
const { isPast } = rundownMetadata[entry.id];
|
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) {
|
if (hidePast && isPast && !isCurrentParent) {
|
||||||
return null;
|
return null;
|
||||||
|
|||||||
Reference in New Issue
Block a user