Skip to content

Commit

Permalink
don't write empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
shmax committed May 15, 2022
1 parent 8d2a6e5 commit 009a244
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/output/plugins/JavascriptIndexPlugin.ts
Expand Up @@ -69,7 +69,7 @@ export class JavascriptIndexPlugin extends RendererComponent {
kind: reflection.kind,
name: reflection.name,
url: reflection.url,
classes: reflection.cssClasses ?? "",
classes: reflection.cssClasses,
categories: (reflection.categories ?? []).map(
(category) => category.title
),
Expand Down
Expand Up @@ -8,7 +8,7 @@ export interface IDocument {
kind: number;
name: string;
url: string;
classes: string;
classes?: string;
parent?: string;
categories: Array<string>;
}
Expand Down Expand Up @@ -229,7 +229,7 @@ function updateResults(
}

const item = document.createElement("li");
item.classList.value = row.classes;
item.classList.value = row.classes ?? '';

const anchor = document.createElement("a");
anchor.href = state.base + row.url;
Expand Down

0 comments on commit 009a244

Please sign in to comment.