diff --git a/x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/epm/hooks/use_local_search.tsx b/x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/epm/hooks/use_local_search.tsx index 26f1ef6a80271..c81dc15f569fa 100644 --- a/x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/epm/hooks/use_local_search.tsx +++ b/x-pack/plugins/ingest_manager/public/applications/ingest_manager/sections/epm/hooks/use_local_search.tsx @@ -15,8 +15,6 @@ export function useLocalSearch(packageList: PackageList) { const localSearchRef = useRef(null); useEffect(() => { - if (!packageList.length) return; - const localSearch = new LocalSearch(searchIdField); fieldsToSearch.forEach(field => localSearch.addIndex(field)); localSearch.addDocuments(packageList);