From 3cb0281c4656d708134de75452cff5c8a88f0dfb Mon Sep 17 00:00:00 2001 From: atanasster Date: Thu, 2 Jul 2020 15:09:08 -0400 Subject: [PATCH] fix: remove container if no children --- .../BlockContainer/components/ComponentsBlockContainer.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/blocks/src/BlockContainer/components/ComponentsBlockContainer.tsx b/ui/blocks/src/BlockContainer/components/ComponentsBlockContainer.tsx index 9ab5ce7ed..abc781bc2 100644 --- a/ui/blocks/src/BlockContainer/components/ComponentsBlockContainer.tsx +++ b/ui/blocks/src/BlockContainer/components/ComponentsBlockContainer.tsx @@ -76,9 +76,9 @@ export const ComponentsBlockContainer: FC = ({ ); // console.log(child); - return ( + return child ? ( {block} - ); + ) : null; };