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:
@@ -139,7 +139,5 @@ export interface ToolSearchResultListItemProps {
|
||||
rank?: number;
|
||||
// (undocumented)
|
||||
result?: IndexableDocument;
|
||||
// (undocumented)
|
||||
toggleModal?: () => void;
|
||||
}
|
||||
```
|
||||
|
||||
+3
-3
@@ -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>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user