From 81329ce6e40a7f4686b694155045c559840067d0 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Mon, 4 Oct 2021 19:03:15 -0400 Subject: [PATCH] [Fleet] Fix integration category redirect after loading categories (#113812) (#113847) Co-authored-by: Nicolas Chaulet --- .../integrations/sections/epm/screens/home/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/index.tsx b/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/index.tsx index 27e2d11769ef8..edb79b1f2c17b 100644 --- a/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/index.tsx +++ b/x-pack/plugins/fleet/public/applications/integrations/sections/epm/screens/home/index.tsx @@ -343,7 +343,7 @@ const AvailablePackages: React.FC = memo(() => { isLoadingCategories, ]); - if (!categoryExists(selectedCategory, categories)) { + if (!isLoadingCategories && !categoryExists(selectedCategory, categories)) { history.replace(pagePathGetters.integrations_all({ category: '', searchTerm: searchParam })[1]); return null; }