Skip to content

Commit a189b8c

Browse files
fix(TableIndexInfo): format DataSize (#468)
1 parent c3f5585 commit a189b8c

File tree

1 file changed

+3
-1
lines changed
  • src/components/InfoViewer/formatters

1 file changed

+3
-1
lines changed

src/components/InfoViewer/formatters/schema.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import {TIndexDescription} from '../../../types/api/schema';
1+
import type {TIndexDescription} from '../../../types/api/schema';
2+
import {toFormattedSize} from '../../FormattedBytes/utils';
23

34
import {createInfoFormatter} from '../utils';
45

@@ -8,6 +9,7 @@ export const formatTableIndexItem = createInfoFormatter<TIndexDescription>({
89
State: (value) => value?.substring(11), // trims EIndexState prefix
910
KeyColumnNames: (value) => value?.join(', '),
1011
DataColumnNames: (value) => value?.join(', '),
12+
DataSize: toFormattedSize,
1113
},
1214
labels: {
1315
KeyColumnNames: 'Columns',

0 commit comments

Comments
 (0)