diff --git a/odd-platform-ui/src/components/DataQuality/DataQualityFilters/DataQualityFilters.tsx b/odd-platform-ui/src/components/DataQuality/DataQualityFilters/DataQualityFilters.tsx index 8ea966568..85ce5346c 100644 --- a/odd-platform-ui/src/components/DataQuality/DataQualityFilters/DataQualityFilters.tsx +++ b/odd-platform-ui/src/components/DataQuality/DataQualityFilters/DataQualityFilters.tsx @@ -45,11 +45,11 @@ export const DataQualityFilters: FC = () => { // sync searchParams with formFilters on formFilters change useEffect(() => { const newSearchParams = new URLSearchParams(); - for (const [key, value] of Object.entries(formFilters)) { + Object.entries(formFilters).forEach(([key, value]) => { if (Array.isArray(value) && value.length > 0) { newSearchParams.set(key, JSON.stringify(value)); } - } + }); setSearchParams(newSearchParams, { replace: true }); }, [formFilters, setSearchParams]); diff --git a/odd-platform-ui/src/components/DataQuality/DataQualityFilters/FilterItem/MultipleFilterItem/MultipleFilterItemAutocomplete/MultipleFilterItemAutocomplete.tsx b/odd-platform-ui/src/components/DataQuality/DataQualityFilters/FilterItem/MultipleFilterItem/MultipleFilterItemAutocomplete/MultipleFilterItemAutocomplete.tsx index 97a33bb72..a15611d23 100644 --- a/odd-platform-ui/src/components/DataQuality/DataQualityFilters/FilterItem/MultipleFilterItem/MultipleFilterItemAutocomplete/MultipleFilterItemAutocomplete.tsx +++ b/odd-platform-ui/src/components/DataQuality/DataQualityFilters/FilterItem/MultipleFilterItem/MultipleFilterItemAutocomplete/MultipleFilterItemAutocomplete.tsx @@ -73,15 +73,14 @@ const MultipleFilterItemAutocomplete: FC = ({ }, []); const getFilterOptions = useCallback( - (_: any, params: FilterOptionsState