Skip to content

Commit

Permalink
fix(search): Set a default icon when no type is found
Browse files Browse the repository at this point in the history
The `type: unknown` attribute was not handled by the `<ResultMenuItem>`
component and so the application would break
  • Loading branch information
Ldoppea committed Oct 28, 2024
1 parent f555987 commit e43bc43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/assistant/Search/getIconForSearchResult.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ export const getIconForSearchResult = searchResult => {
}

return {
type: 'unknown'
type: 'component',
component: IconFiles
}
}

Expand Down

0 comments on commit e43bc43

Please sign in to comment.