[Fleet] Fix integration category redirect after loading categories (#113812)

This commit is contained in:
Nicolas Chaulet 2021-10-04 16:34:05 -04:00 committed by GitHub
parent d038f1e214
commit 3efad94646
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}