Skip to content

Commit

Permalink
fix: improved search filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ekep-Obasi committed Nov 22, 2023
1 parent a79c411 commit 9ce0727
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ export const Sources = () => {
?.filter(
(val: TSources) =>
(!typeFilter || val.source_type === typeFilter) &&
val.source.toLowerCase().startsWith(search.toLowerCase()),
(val.source.toLowerCase().startsWith(search.toLowerCase()) ||
val.source.toLowerCase().includes(search.toLowerCase())),
)
.reverse(),
[search, typeFilter, sources],
Expand Down

0 comments on commit 9ce0727

Please sign in to comment.