Apply suggestions from code review

Co-authored-by: Camila Belo <camilaibs@gmail.com>
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
This commit is contained in:
Emma Indal
2023-02-01 12:58:54 +01:00
parent c3798fd6bd
commit b031b821d5
4 changed files with 53 additions and 45 deletions
-2
View File
@@ -139,7 +139,5 @@ export interface ToolSearchResultListItemProps {
rank?: number;
// (undocumented)
result?: IndexableDocument;
// (undocumented)
toggleModal?: () => void;
}
```
@@ -50,7 +50,6 @@ export interface ToolSearchResultListItemProps {
result?: IndexableDocument;
highlight?: ResultHighlight;
rank?: number;
toggleModal?: () => void;
}
/** @public */
@@ -94,8 +93,9 @@ export function ToolSearchResultListItem(props: ToolSearchResultListItemProps) {
}
/>
<Box>
{result.tags &&
result.tags.map((tag: string) => <Chip label={tag} size="small" />)}
{result.tags?.map((tag: string) => (
<Chip label={tag} size="small" />
))}
</Box>
</div>
</>