diff --git a/src/components/SourcesTableModal/SourcesView/Sources/index.tsx b/src/components/SourcesTableModal/SourcesView/Sources/index.tsx index 59d6d3d1b..6f6bfff3f 100644 --- a/src/components/SourcesTableModal/SourcesView/Sources/index.tsx +++ b/src/components/SourcesTableModal/SourcesView/Sources/index.tsx @@ -49,14 +49,12 @@ export const Sources = () => { const tableValues = useMemo( () => - sources - ?.filter( - (val: TSources) => - (!typeFilter || val.source_type === typeFilter) && - (val.source.toLowerCase().startsWith(search.toLowerCase()) || - val.source.toLowerCase().includes(search.toLowerCase())), - ) - .reverse(), + sources?.filter( + (val: TSources) => + (!typeFilter || val.source_type === typeFilter) && + (val.source.toLowerCase().startsWith(search.toLowerCase()) || + val.source.toLowerCase().includes(search.toLowerCase())), + ), [search, typeFilter, sources], )