Skip to content

Commit 432c621

Browse files
fix(Tenants): fix tenant link (#439)
1 parent 3e6b6c3 commit 432c621

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/containers/Tenants/Tenants.js

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,9 @@ import {AutoFetcher} from '../../utils/autofetcher';
1818
import routes, {createHref} from '../../routes';
1919
import {formatCPU, formatBytesToGigabyte, formatNumber} from '../../utils';
2020
import {withSearch} from '../../HOCS';
21-
import {DEFAULT_TABLE_SETTINGS, TENANT_INITIAL_PAGE_KEY} from '../../utils/constants';
22-
import {TENANT_PAGES_IDS} from '../../store/reducers/tenant/constants';
21+
import {DEFAULT_TABLE_SETTINGS} from '../../utils/constants';
2322
import {getTenantsInfo} from '../../store/reducers/tenants/tenants';
24-
import {
25-
changeFilter,
26-
getSettingValue,
27-
ProblemFilterValues,
28-
} from '../../store/reducers/settings/settings';
23+
import {changeFilter, ProblemFilterValues} from '../../store/reducers/settings/settings';
2924

3025
import {clusterName} from '../../store';
3126
import {TenantTabsGroups, TENANT_INFO_TABS} from '../Tenant/TenantPages';
@@ -115,7 +110,6 @@ class Tenants extends React.Component {
115110
filter,
116111
handleSearchQuery,
117112
additionalTenantsInfo = {},
118-
savedTenantInitialTab,
119113
} = this.props;
120114

121115
const filteredTenantsBySearch = tenants.filter((item) => {
@@ -124,7 +118,6 @@ class Tenants extends React.Component {
124118
});
125119
const filteredTenants = Tenants.filterTenants(filteredTenantsBySearch, filter);
126120

127-
const initialTenantGeneralTab = savedTenantInitialTab || TENANT_PAGES_IDS.query;
128121
const initialTenantInfoTab = TENANT_INFO_TABS[0].id;
129122

130123
const getTenantBackend = (tenant) => {
@@ -154,7 +147,6 @@ class Tenants extends React.Component {
154147
name: value,
155148
backend,
156149
[TenantTabsGroups.info]: initialTenantInfoTab,
157-
[TenantTabsGroups.general]: initialTenantGeneralTab,
158150
})}
159151
/>
160152
{additionalTenantsInfo.name && additionalTenantsInfo.name(value, row)}
@@ -360,7 +352,6 @@ const mapStateToProps = (state) => {
360352
loading,
361353
error,
362354
filter: state.settings.problemFilter,
363-
savedTenantInitialTab: getSettingValue(state, TENANT_INITIAL_PAGE_KEY),
364355
};
365356
};
366357

0 commit comments

Comments
 (0)