mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 14:39:06 +00:00
fix: collapsed blocks dont render children
This commit is contained in:
committed by
Carlos Valente
parent
4a83983161
commit
0a44bfe783
@@ -362,6 +362,8 @@ export default function Rundown({ data }: RundownProps) {
|
|||||||
|
|
||||||
if (isBlockCollapsed && isEditMode && isLast) {
|
if (isBlockCollapsed && isEditMode && isLast) {
|
||||||
return <QuickAddBlock key={entryId} previousEventId={parentId} parentBlock={null} />;
|
return <QuickAddBlock key={entryId} previousEventId={parentId} parentBlock={null} />;
|
||||||
|
} else if (isBlockCollapsed) {
|
||||||
|
return null;
|
||||||
} else {
|
} else {
|
||||||
const parentColour = (entries[parentId] as OntimeBlock | undefined)?.colour;
|
const parentColour = (entries[parentId] as OntimeBlock | undefined)?.colour;
|
||||||
// if the previous element is selected, it will have its own QuickAddBlock
|
// if the previous element is selected, it will have its own QuickAddBlock
|
||||||
|
|||||||
Reference in New Issue
Block a user