refactor: small code improvements

This commit is contained in:
Carlos Valente
2025-08-09 08:19:14 +02:00
committed by Carlos Valente
parent e5d2457717
commit 9ab6b30aea
5 changed files with 11 additions and 10 deletions
@@ -87,8 +87,8 @@ export default function CuesheetBody({ rowModel, selectedRef, table }: CuesheetB
let parentBgColour: string | null = null;
if (entry.parent) {
const rundown = queryClient.getQueryData<Rundown>(RUNDOWN);
const parentEntry = rundown?.entries[entry.parent];
parentBgColour = (parentEntry as OntimeGroup).colour ?? null;
const parentEntry = rundown?.entries[entry.parent] as OntimeGroup | undefined;
parentBgColour = parentEntry?.colour ?? null;
}
return <DelayRow key={key} duration={delayVal} parentBgColour={parentBgColour} />;
}