Skip to content

Commit 5e43c3e

Browse files
committed
Ensure a title for search results
1 parent 8a8ef5e commit 5e43c3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/components/Search.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,12 @@ function SearchResults() {
7878
}
7979

8080
function fu(input: any) {
81+
console.error(input);
8182
const {project, displayName, brief} = input
8283
const tertiary = displayName != project ? project : undefined;
8384
return <ListItem key={project} disableGutters disablePadding dense>
8485
<ListItemButton href={`/pkgs/${project}/`} dense>
85-
<ListItemText primary={displayName} secondary={brief || tertiary} />
86+
<ListItemText primary={displayName || project} secondary={brief || tertiary} />
8687
</ListItemButton>
8788
</ListItem>
8889
}

0 commit comments

Comments
 (0)