mirror of
https://github.com/cpvalente/ontime.git
synced 2026-09-01 20:39:18 +00:00
fix: use unfiltered events in timeline
This commit is contained in:
committed by
Carlos Valente
parent
a26aa9e01c
commit
c3fb3061f6
@@ -15,7 +15,6 @@ import style from './TimelinePage.module.scss';
|
|||||||
|
|
||||||
interface TimelinePageProps {
|
interface TimelinePageProps {
|
||||||
backstageEvents: OntimeEvent[];
|
backstageEvents: OntimeEvent[];
|
||||||
events: OntimeEvent[];
|
|
||||||
general: ProjectData;
|
general: ProjectData;
|
||||||
selectedId: MaybeString;
|
selectedId: MaybeString;
|
||||||
settings: Settings | undefined;
|
settings: Settings | undefined;
|
||||||
@@ -28,14 +27,14 @@ interface TimelinePageProps {
|
|||||||
* There is little point splitting or memoising top level elements
|
* There is little point splitting or memoising top level elements
|
||||||
*/
|
*/
|
||||||
export default function TimelinePage(props: TimelinePageProps) {
|
export default function TimelinePage(props: TimelinePageProps) {
|
||||||
const { events, general, selectedId, settings, time } = props;
|
const { backstageEvents, general, selectedId, settings, time } = props;
|
||||||
|
|
||||||
const { getLocalizedString } = useTranslation();
|
const { getLocalizedString } = useTranslation();
|
||||||
const clock = formatTime(time.clock);
|
const clock = formatTime(time.clock);
|
||||||
|
|
||||||
const scopedRundown = useMemo(() => {
|
const scopedRundown = useMemo(() => {
|
||||||
return getScopedRundown(events, selectedId);
|
return getScopedRundown(backstageEvents, selectedId);
|
||||||
}, [events, selectedId]);
|
}, [backstageEvents, selectedId]);
|
||||||
|
|
||||||
const { now, next, followedBy } = useMemo(() => {
|
const { now, next, followedBy } = useMemo(() => {
|
||||||
return getUpcomingEvents(scopedRundown, selectedId);
|
return getUpcomingEvents(scopedRundown, selectedId);
|
||||||
|
|||||||
Reference in New Issue
Block a user