1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-19 17:52:45 +02:00

feat: more powerful project search

This commit is contained in:
kwasniew 2023-08-22 07:54:46 +02:00
parent f9f086dcf1
commit 9160f21552
No known key found for this signature in database
GPG Key ID: 43A7CBC24C119560

View File

@ -73,7 +73,7 @@ export const SearchSuggestions: VFC<SearchSuggestionsProps> = ({
name: column.filterName,
header: column.Header ?? column.filterName,
options: [...new Set(filterOptions)]
.filter((it: unknown) => it)
.filter(Boolean)
.sort((a, b) => a.localeCompare(b)),
suggestedOption:
filterOptions[randomRow] ?? `example-${column.filterName}`,