refactor(operator): hide groups where all events have passed (#1878)

This commit is contained in:
Shobhit Nagpal
2025-11-18 10:42:02 +05:30
committed by GitHub
parent 93e9c19e0d
commit 9974ce24cd
@@ -171,6 +171,14 @@ function Operator({ rundown, rundownMetadata, customFields, settings }: Operator
}
if (isOntimeGroup(entry)) {
const { isPast } = rundownMetadata[entry.id];
const isCurrentParent = selectedEventId ? rundownMetadata[selectedEventId].groupId === entry.id : false;
if (hidePast && isPast && !isCurrentParent) {
return null;
}
return (
<Fragment key={entry.id}>
<OperatorGroup key={entry.id} title={entry.title} />