fixed flow issue with Heading
This commit is contained in:
@ -29,7 +29,6 @@ function Heading(props: Props) {
|
|||||||
component = 'h1',
|
component = 'h1',
|
||||||
className,
|
className,
|
||||||
attributes,
|
attributes,
|
||||||
className,
|
|
||||||
} = props;
|
} = props;
|
||||||
const parentIsDocument = parent instanceof Document;
|
const parentIsDocument = parent instanceof Document;
|
||||||
const firstHeading = parentIsDocument && parent.nodes.first() === node;
|
const firstHeading = parentIsDocument && parent.nodes.first() === node;
|
||||||
|
Reference in New Issue
Block a user