fix: collapsed blocks dont render children

This commit is contained in:
Carlos Valente
2025-05-16 21:03:02 +02:00
committed by arc-alex
parent c7b2f0e89c
commit d21f132674
@@ -362,6 +362,8 @@ export default function Rundown({ data }: RundownProps) {
if (isBlockCollapsed && isEditMode && isLast) {
return <QuickAddBlock key={entryId} previousEventId={parentId} parentBlock={null} />;
} else if (isBlockCollapsed) {
return null;
} else {
const parentColour = (entries[parentId] as OntimeBlock | undefined)?.colour;
// if the previous element is selected, it will have its own QuickAddBlock