From d54dd47b210aa213af7eeb2bdb9a1703819375f3 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Wed, 16 Aug 2023 13:21:16 +1200 Subject: [PATCH] fix(environments): fix env table [EE-5971] (#10060) Co-authored-by: testa113 --- .../ListView/EnvironmentsDatatable.tsx | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/app/react/portainer/environments/ListView/EnvironmentsDatatable.tsx b/app/react/portainer/environments/ListView/EnvironmentsDatatable.tsx index dc5d3bdb7..7bca35faa 100644 --- a/app/react/portainer/environments/ListView/EnvironmentsDatatable.tsx +++ b/app/react/portainer/environments/ListView/EnvironmentsDatatable.tsx @@ -11,7 +11,7 @@ import { Link } from '@@/Link'; import { useTableState } from '@@/datatables/useTableState'; import { isBE } from '../../feature-flags/feature-flags.service'; -import { isSortType, refetchIfAnyOffline } from '../queries/useEnvironmentList'; +import { isSortType } from '../queries/useEnvironmentList'; import { columns } from './columns'; import { EnvironmentListItem } from './types'; @@ -39,7 +39,7 @@ export function EnvironmentsDatatable({ sort: isSortType(tableState.sortBy.id) ? tableState.sortBy.id : undefined, order: tableState.sortBy.desc ? 'desc' : 'asc', }, - { enabled: groupsQuery.isSuccess, refetchInterval: refetchIfAnyOffline } + { enabled: groupsQuery.isSuccess, refetchInterval: 30 * 1000 } ); const environmentsWithGroups = environments.map( @@ -88,15 +88,17 @@ export function EnvironmentsDatatable({ Auto onboarding )} - - + + + )} />