Skip to content

Commit

Permalink
fix(website): dont show parameters header on functions without parame…
Browse files Browse the repository at this point in the history
…ters (#9361)
  • Loading branch information
almeidx committed Apr 10, 2023
1 parent 774e23c commit d6905b3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function FunctionBody({ item }: { item: ApiFunction }) {
<SyntaxHighlighter code={item.excerpt.text} />
<SummarySection item={item} />
{item.typeParameters.length ? <TypeParameterSection item={item} /> : null}
<ParameterSection item={item} />
{item.parameters.length ? <ParameterSection item={item} /> : null}
</Documentation>
);
}

1 comment on commit d6905b3

@vercel
Copy link

@vercel vercel bot commented on d6905b3 Apr 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.