mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 00:44:42 +12:00
fix(website): dont show parameters header on functions without parameters (#9361)
This commit is contained in:
parent
774e23c572
commit
d6905b3b97
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue