From cd0999b2ab75fb5835546fa282619dab198e6dab Mon Sep 17 00:00:00 2001 From: Carlos Valente Date: Fri, 16 May 2025 21:03:02 +0200 Subject: [PATCH] fix: collapsed blocks dont render children --- apps/client/src/features/rundown/Rundown.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/client/src/features/rundown/Rundown.tsx b/apps/client/src/features/rundown/Rundown.tsx index e60b13659..4d56e8876 100644 --- a/apps/client/src/features/rundown/Rundown.tsx +++ b/apps/client/src/features/rundown/Rundown.tsx @@ -362,6 +362,8 @@ export default function Rundown({ data }: RundownProps) { if (isBlockCollapsed && isEditMode && isLast) { return ; + } 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