diff --git a/src/components/App/SideBar/FilterSearch/index.tsx b/src/components/App/SideBar/FilterSearch/index.tsx index 60c023733..b61c43786 100644 --- a/src/components/App/SideBar/FilterSearch/index.tsx +++ b/src/components/App/SideBar/FilterSearch/index.tsx @@ -78,6 +78,10 @@ export const FilterSearch = ({ await fetchData(setBudget, setAbortRequests) } + const uniqueSchemas = (showAllSchemas ? schemaAll : schemaAll.slice(0, 4)).filter( + (schema, index, self) => index === self.findIndex((s) => s.type === schema.type), + ) + return ( - {(showAllSchemas ? schemaAll : schemaAll.slice(0, 4)).map((schema) => ( + {uniqueSchemas.map((schema) => (