@@ -14,13 +14,11 @@ import {
1414import { EShardsWorkloadMode } from '../../../../store/reducers/shardsWorkload/types' ;
1515import type { ShardsWorkloadFilters } from '../../../../store/reducers/shardsWorkload/types' ;
1616import type { CellValue , KeyValueRow } from '../../../../types/api/query' ;
17- import type { EPathType } from '../../../../types/api/schema' ;
1817import { cn } from '../../../../utils/cn' ;
1918import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants' ;
2019import { formatDateTime } from '../../../../utils/dataFormatters/dataFormatters' ;
2120import { useAutoRefreshInterval , useTypedDispatch , useTypedSelector } from '../../../../utils/hooks' ;
2221import { parseQueryErrorToString } from '../../../../utils/query' ;
23- import { isColumnEntityType } from '../../utils/schema' ;
2422
2523import { Filters } from './Filters' ;
2624import { getShardsWorkloadColumns } from './columns/columns' ;
@@ -60,10 +58,9 @@ function fillDateRangeFor(value: ShardsWorkloadFilters) {
6058interface TopShardsProps {
6159 tenantName : string ;
6260 path : string ;
63- type ?: EPathType ;
6461}
6562
66- export const TopShards = ( { tenantName, path, type } : TopShardsProps ) => {
63+ export const TopShards = ( { tenantName, path} : TopShardsProps ) => {
6764 const dispatch = useTypedDispatch ( ) ;
6865 const location = useLocation ( ) ;
6966
@@ -163,10 +160,6 @@ export const TopShards = ({tenantName, path, type}: TopShardsProps) => {
163160 return null ;
164161 }
165162
166- if ( ! data || isColumnEntityType ( type ) ) {
167- return i18n ( 'no-data' ) ;
168- }
169-
170163 return (
171164 < ResizeableDataTable
172165 columnsWidthLSKey = { TOP_SHARDS_COLUMNS_WIDTH_LS_KEY }
0 commit comments