@@ -19,7 +19,6 @@ import {setHeaderBreadcrumbs} from '../../store/reducers/header/header';
1919import { tabletApi } from '../../store/reducers/tablet' ;
2020import { EFlag } from '../../types/api/enums' ;
2121import type { TTabletStateInfo } from '../../types/api/tablet' ;
22- import { EType } from '../../types/api/tablet' ;
2322import type { ITabletPreparedHistoryItem } from '../../types/store/tablet' ;
2423import { cn } from '../../utils/cn' ;
2524import { CLUSTER_DEFAULT_TITLE } from '../../utils/constants' ;
@@ -58,11 +57,9 @@ const TABLET_PAGE_TABS = [
5857] ;
5958
6059const tabletTabSchema = z . nativeEnum ( TABLET_TABS_IDS ) . catch ( TABLET_TABS_IDS . history ) ;
61- const eTypeSchema = z . nativeEnum ( EType ) . or ( z . undefined ( ) ) . catch ( undefined ) ;
6260
6361const 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 (
0 commit comments