mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
fix(website): dont show parameters header on functions without parameters (#9361)
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user