Merge pull request #422 from outline/jori/lint-heading

Fixed flow issue with Heading
This commit is contained in:
Jori Lallo
2017-11-19 11:36:59 -08:00
committed by GitHub

View File

@@ -29,7 +29,6 @@ function Heading(props: Props) {
component = 'h1',
className,
attributes,
className,
} = props;
const parentIsDocument = parent instanceof Document;
const firstHeading = parentIsDocument && parent.nodes.first() === node;