diff --git a/keep-ui/app/alerts/alert-table-alert-facets.tsx b/keep-ui/app/alerts/alert-table-alert-facets.tsx index 2851e78a1..1366558b4 100644 --- a/keep-ui/app/alerts/alert-table-alert-facets.tsx +++ b/keep-ui/app/alerts/alert-table-alert-facets.tsx @@ -171,22 +171,6 @@ export const AlertFacets: React.FC = ({ "incident", ]; - // TODO: move to the alert-table.tsx - useEffect( - function setInitialFacetFilters() { - setFacetFilters((facetFilters) => { - return Object.keys(facetFilters).reduce((acc, key) => { - acc[key] = - facetFilters[key]?.length === 0 - ? getFacetValues(key as keyof AlertDto).map((v) => v.label) - : facetFilters[key]; - return acc; - }, {} as FacetFilters); - }); - }, - [getFacetValues, setFacetFilters] - ); - const handleAddFacet = (column: string) => { setDynamicFacets([ ...dynamicFacets,