fix: remove extra-padding caused by empty group sections

This commit is contained in:
Roman Hotsiy 2018-10-05 10:49:46 +03:00
parent 505463f5ab
commit 974bc7ddb0
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -49,9 +49,11 @@ export class ContentItem extends React.Component<ContentItemProps> {
return (
<>
<Section id={item.id} underlined={item.type === 'operation'}>
{content}
</Section>
{content && (
<Section id={item.id} underlined={item.type === 'operation'}>
{content}
</Section>
)}
{item.items && <ContentItems items={item.items} />}
</>
);