Skip to content

Commit

Permalink
fix: remove container if no children
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Jul 2, 2020
1 parent 96b00fb commit 3cb0281
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@ export const ComponentsBlockContainer: FC<ComponentsBlockContainerProps> = ({
</ComponentsContainer>
);
// console.log(child);
return (
return child ? (
<BlockContainer title={title} collapsible={collapsible} id={id}>
{block}
</BlockContainer>
);
) : null;
};

0 comments on commit 3cb0281

Please sign in to comment.