From b1cf3707e41bac495f662357a00a41f81a61172d Mon Sep 17 00:00:00 2001 From: Elena Makarova Date: Fri, 1 Aug 2025 09:14:42 +0300 Subject: [PATCH 1/2] fix: tenant navigation --- src/store/reducers/tenant/tenant.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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({ From 59015c464f483e85e741c539c98526fc4bd66110 Mon Sep 17 00:00:00 2001 From: Elena Makarova Date: Fri, 1 Aug 2025 09:38:02 +0300 Subject: [PATCH 2/2] fix: types --- src/store/reducers/tenant/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }