Fleet UI: Fix host page pagination (#9492)

This commit is contained in:
RachelElysia
2023-01-27 14:14:58 -05:00
committed by GitHub
parent e376d53294
commit c4ba1b0396
2 changed files with 3 additions and 9 deletions
@@ -0,0 +1 @@
* Fix pagination on manage host page
@@ -1648,14 +1648,7 @@ const ManageHostsPage = ({
};
const renderTable = () => {
if (
!config ||
!currentUser ||
isHostCountLoading ||
isHostsLoading ||
isLoadingPolicy ||
!teamSync
) {
if (!config || !currentUser || !teamSync) {
return <Spinner />;
}
@@ -1764,7 +1757,7 @@ const ManageHostsPage = ({
<TableContainer
columns={tableColumns}
data={hosts || []}
isLoading={isHostsLoading || isHostCountLoading}
isLoading={isHostsLoading || isHostCountLoading || isLoadingPolicy}
manualSortBy
defaultSortHeader={(sortBy[0] && sortBy[0].key) || DEFAULT_SORT_HEADER}
defaultSortDirection={