Skip to content

Commit

Permalink
[Fleet] Fix integration category redirect after loading categories (#…
Browse files Browse the repository at this point in the history
…113812) (#113847)

Co-authored-by: Nicolas Chaulet <nicolas.chaulet@elastic.co>
  • Loading branch information
kibanamachine and nchaulet authored Oct 4, 2021
1 parent 76c31da commit 81329ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 81329ce

Please sign in to comment.