fixed flow issue with Heading

This commit is contained in:
Jori Lallo
2017-11-19 11:32:27 -08:00
parent dacddf1996
commit dab97ea2fa

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;