Skip to content

Commit ae839ef

Browse files
committed
coalesce
1 parent 3601b26 commit ae839ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/lib/output/plugins/JavascriptIndexPlugin.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,10 @@ export class JavascriptIndexPlugin extends RendererComponent {
4242
const rows: any[] = [];
4343
const kinds: { [K in ReflectionKind]?: string } = {};
4444

45-
const kindBoosts = this.application.options.getValue(
46-
"searchGroupBoosts"
47-
) as { [key: string]: number };
45+
const kindBoosts =
46+
(this.application.options.getValue("searchGroupBoosts") as {
47+
[key: string]: number;
48+
}) ?? {};
4849

4950
for (const reflection of event.project.getReflectionsByKind(
5051
ReflectionKind.All

0 commit comments

Comments
 (0)