fix: collapsed blocks dont render children

This commit is contained in:
Carlos Valente
2025-05-16 21:03:02 +02:00
committed by Carlos Valente
parent b4c60f3f04
commit cd0999b2ab
@@ -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