Skip to content

Commit 5918555

Browse files
Raubzeugastandrik
andauthored
fix: tenant navigation (#2649)
Co-authored-by: Anton Standrik <astandrik@yandex-team.ru>
1 parent ac8b3dd commit 5918555

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/store/reducers/tenant/tenant.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import type {TTenantInfo} from '../../../types/api/tenant';
66
import {TENANT_INITIAL_PAGE_KEY} from '../../../utils/constants';
77
import {api} from '../api';
88

9-
import {TENANT_METRICS_TABS_IDS} from './constants';
9+
import {TENANT_DIAGNOSTICS_TABS_IDS, TENANT_METRICS_TABS_IDS} from './constants';
1010
import {tenantPageSchema} from './types';
1111
import type {
1212
TenantDiagnosticsTab,
@@ -24,6 +24,7 @@ const tenantPage = tenantPageSchema
2424
export const initialState: TenantState = {
2525
tenantPage,
2626
metricsTab: TENANT_METRICS_TABS_IDS.cpu,
27+
diagnosticsTab: TENANT_DIAGNOSTICS_TABS_IDS.overview,
2728
};
2829

2930
const slice = createSlice({

src/store/reducers/tenant/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type TenantNetworkTab = ValueOf<typeof TENANT_NETWORK_TABS_IDS>;
2929
export interface TenantState {
3030
tenantPage: TenantPage;
3131
queryTab?: TenantQueryTab;
32-
diagnosticsTab?: TenantDiagnosticsTab;
32+
diagnosticsTab: TenantDiagnosticsTab;
3333
summaryTab?: TenantSummaryTab;
3434
metricsTab: TenantMetricsTab;
3535
}

0 commit comments

Comments
 (0)