Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/store/reducers/tenant/tenant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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({
Expand Down
2 changes: 1 addition & 1 deletion src/store/reducers/tenant/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export type TenantNetworkTab = ValueOf<typeof TENANT_NETWORK_TABS_IDS>;
export interface TenantState {
tenantPage: TenantPage;
queryTab?: TenantQueryTab;
diagnosticsTab?: TenantDiagnosticsTab;
diagnosticsTab: TenantDiagnosticsTab;
summaryTab?: TenantSummaryTab;
metricsTab: TenantMetricsTab;
}
Loading