fix anchors on /graphql/reference/objects (#29815)
This commit is contained in:
@@ -12,7 +12,7 @@ type Props = {
|
||||
export function GraphqlItem({ item, heading, children, headingLevel = 2 }: Props) {
|
||||
const lowerCaseName = item.name.toLowerCase()
|
||||
return (
|
||||
<>
|
||||
<div>
|
||||
{headingLevel === 2 && (
|
||||
<h2 id={lowerCaseName}>
|
||||
<LinkIconHeading slug={lowerCaseName} />
|
||||
@@ -38,6 +38,6 @@ export function GraphqlItem({ item, heading, children, headingLevel = 2 }: Props
|
||||
{heading && <h4>{heading}</h4>}
|
||||
{children}
|
||||
</div>
|
||||
</>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user