diff options
Diffstat (limited to 'packages/dev-tools-pages/ts/components/content-block.tsx')
-rw-r--r-- | packages/dev-tools-pages/ts/components/content-block.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/dev-tools-pages/ts/components/content-block.tsx b/packages/dev-tools-pages/ts/components/content-block.tsx index a8c208163..3f6b024e6 100644 --- a/packages/dev-tools-pages/ts/components/content-block.tsx +++ b/packages/dev-tools-pages/ts/components/content-block.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; import styled from 'styled-components'; +import * as _ from 'lodash'; import { ContextInterface } from 'ts/context'; import { media } from 'ts/variables'; @@ -69,7 +70,7 @@ const ContentBlock: React.StatelessComponent<ContentBlockProps> = props => { return ( <Base> <Title color={props.colors}>{props.title}</Title> - {children === undefined ? null : <Content>{children}</Content>} + {_.isUndefined(children) ? null : <Content>{children}</Content>} </Base> ); }; |