diff --git a/src/components/molecules/ResourceFilter/ResourceFilter.tsx b/src/components/molecules/ResourceFilter/ResourceFilter.tsx index ed02f21b63..2396e96690 100644 --- a/src/components/molecules/ResourceFilter/ResourceFilter.tsx +++ b/src/components/molecules/ResourceFilter/ResourceFilter.tsx @@ -32,7 +32,7 @@ const ResourceFilter = () => { const [annotations, setAnnotations] = useState>({}); const [fileOrFolderContainedIn, setFileOrFolderContainedIn] = useState(); const [labels, setLabels] = useState>({}); - const [kinds, setKinds] = useState([ALL_OPTIONS]); + const [kinds, setKinds] = useState([]); const [name, setName] = useState(); const [namespace, setNamespace] = useState(); const [wasLocalUpdate, setWasLocalUpdate] = useState(false); @@ -79,7 +79,7 @@ const ResourceFilter = () => { const resetFilters = () => { setWasLocalUpdate(true); setName(''); - setKinds([ALL_OPTIONS]); + setKinds([]); setNamespace(ALL_OPTIONS); setLabels({}); setAnnotations({}); @@ -163,7 +163,7 @@ const ResourceFilter = () => { useEffect(() => { if (!wasLocalUpdate) { setName(filtersMap.name); - setKinds(filtersMap.kinds || [ALL_OPTIONS]); + setKinds(filtersMap.kinds || []); setNamespace(filtersMap.namespace); setLabels(filtersMap.labels); setAnnotations(filtersMap.annotations); @@ -221,6 +221,7 @@ const ResourceFilter = () => { placeholder="Select one or multiple kinds" showArrow showSearch + mode="multiple" style={{width: '100%'}} value={kinds || []} onChange={updateKinds}