diff --git a/src/store/reducers/tenant/tenant.ts b/src/store/reducers/tenant/tenant.ts index 59585d7cd6..e01b02d51f 100644 --- a/src/store/reducers/tenant/tenant.ts +++ b/src/store/reducers/tenant/tenant.ts @@ -6,7 +6,7 @@ import type {TTenantInfo} from '../../../types/api/tenant'; import {TENANT_INITIAL_PAGE_KEY} from '../../../utils/constants'; import {api} from '../api'; -import {TENANT_METRICS_TABS_IDS} from './constants'; +import {TENANT_DIAGNOSTICS_TABS_IDS, TENANT_METRICS_TABS_IDS} from './constants'; import {tenantPageSchema} from './types'; import type { TenantDiagnosticsTab, @@ -24,6 +24,7 @@ const tenantPage = tenantPageSchema export const initialState: TenantState = { tenantPage, metricsTab: TENANT_METRICS_TABS_IDS.cpu, + diagnosticsTab: TENANT_DIAGNOSTICS_TABS_IDS.overview, }; const slice = createSlice({ diff --git a/src/store/reducers/tenant/types.ts b/src/store/reducers/tenant/types.ts index eb4df29063..342362866a 100644 --- a/src/store/reducers/tenant/types.ts +++ b/src/store/reducers/tenant/types.ts @@ -29,7 +29,7 @@ export type TenantNetworkTab = ValueOf; export interface TenantState { tenantPage: TenantPage; queryTab?: TenantQueryTab; - diagnosticsTab?: TenantDiagnosticsTab; + diagnosticsTab: TenantDiagnosticsTab; summaryTab?: TenantSummaryTab; metricsTab: TenantMetricsTab; }