@@ -14,13 +14,11 @@ import {
14
14
import { EShardsWorkloadMode } from '../../../../store/reducers/shardsWorkload/types' ;
15
15
import type { ShardsWorkloadFilters } from '../../../../store/reducers/shardsWorkload/types' ;
16
16
import type { CellValue , KeyValueRow } from '../../../../types/api/query' ;
17
- import type { EPathType } from '../../../../types/api/schema' ;
18
17
import { cn } from '../../../../utils/cn' ;
19
18
import { DEFAULT_TABLE_SETTINGS } from '../../../../utils/constants' ;
20
19
import { formatDateTime } from '../../../../utils/dataFormatters/dataFormatters' ;
21
20
import { useAutoRefreshInterval , useTypedDispatch , useTypedSelector } from '../../../../utils/hooks' ;
22
21
import { parseQueryErrorToString } from '../../../../utils/query' ;
23
- import { isColumnEntityType } from '../../utils/schema' ;
24
22
25
23
import { Filters } from './Filters' ;
26
24
import { getShardsWorkloadColumns } from './columns/columns' ;
@@ -60,10 +58,9 @@ function fillDateRangeFor(value: ShardsWorkloadFilters) {
60
58
interface TopShardsProps {
61
59
tenantName : string ;
62
60
path : string ;
63
- type ?: EPathType ;
64
61
}
65
62
66
- export const TopShards = ( { tenantName, path, type } : TopShardsProps ) => {
63
+ export const TopShards = ( { tenantName, path} : TopShardsProps ) => {
67
64
const dispatch = useTypedDispatch ( ) ;
68
65
const location = useLocation ( ) ;
69
66
@@ -163,10 +160,6 @@ export const TopShards = ({tenantName, path, type}: TopShardsProps) => {
163
160
return null ;
164
161
}
165
162
166
- if ( ! data || isColumnEntityType ( type ) ) {
167
- return i18n ( 'no-data' ) ;
168
- }
169
-
170
163
return (
171
164
< ResizeableDataTable
172
165
columnsWidthLSKey = { TOP_SHARDS_COLUMNS_WIDTH_LS_KEY }
0 commit comments