Fleet UI: Fix host page pagination (#9492)
This commit is contained in:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user