Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andrii-balitskyi committed Oct 8, 2024
1 parent 891d311 commit fc3b753
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ function processParameters(
}

if (param.description == null || param.description.trim() === '') {
acc.noDescription.push(param.name)
acc.noDescription.push({ name: param.name })
}

if (param.isDeprecated) {
Expand All @@ -228,7 +228,7 @@ function processParameters(
},
{
undocumented: [] as ReportItem[],
noDescription: [] as string[],
noDescription: [] as ReportItem[],
deprecated: [] as ReportItem[],
draft: [] as ReportItem[],
},
Expand All @@ -243,7 +243,7 @@ function processParameters(
if (categorizedParams.noDescription.length > 0) {
report.noDescription.parameters.push({
path,
params: categorizedParams.noDescription.map((name) => ({ name })),
params: categorizedParams.noDescription,
})
}
if (categorizedParams.deprecated.length > 0) {
Expand Down

0 comments on commit fc3b753

Please sign in to comment.