Skip to content

Commit f6e610c

Browse files
committed
fix: review
1 parent 05a29e2 commit f6e610c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/containers/Tablet/Tablet.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import {setHeaderBreadcrumbs} from '../../store/reducers/header/header';
1919
import {tabletApi} from '../../store/reducers/tablet';
2020
import {EFlag} from '../../types/api/enums';
2121
import type {TTabletStateInfo} from '../../types/api/tablet';
22-
import {EType} from '../../types/api/tablet';
2322
import type {ITabletPreparedHistoryItem} from '../../types/store/tablet';
2423
import {cn} from '../../utils/cn';
2524
import {CLUSTER_DEFAULT_TITLE} from '../../utils/constants';
@@ -58,11 +57,9 @@ const TABLET_PAGE_TABS = [
5857
];
5958

6059
const tabletTabSchema = z.nativeEnum(TABLET_TABS_IDS).catch(TABLET_TABS_IDS.history);
61-
const eTypeSchema = z.nativeEnum(EType).or(z.undefined()).catch(undefined);
6260

6361
const tabletQueryParams = {
6462
tenantName: StringParam,
65-
type: StringParam,
6663
clusterName: StringParam,
6764
activeTab: StringParam,
6865
};
@@ -72,7 +69,7 @@ export function Tablet() {
7269

7370
const {id} = useParams<{id: string}>();
7471

75-
const [{tenantName: queryDatabase, type: queryTabletType, clusterName: queryClusterName}] =
72+
const [{tenantName: queryDatabase, clusterName: queryClusterName}] =
7673
useQueryParams(tabletQueryParams);
7774

7875
const [autoRefreshInterval] = useAutoRefreshInterval();
@@ -90,7 +87,7 @@ export function Tablet() {
9087

9188
const database = (tenantPath || queryDatabase) ?? undefined;
9289

93-
const tabletType = tablet.Type || eTypeSchema.parse(queryTabletType);
90+
const tabletType = tablet.Type;
9491

9592
React.useEffect(() => {
9693
dispatch(

src/containers/Tablets/TabletsTable.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ function getColumns({database}: {database?: string}) {
5050
}
5151

5252
const tabletPath = getTabletPagePath(row.TabletId, {
53-
type: row.Type,
5453
tenantName: database,
5554
});
5655

0 commit comments

Comments
 (0)