We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3f5585 commit a189b8cCopy full SHA for a189b8c
src/components/InfoViewer/formatters/schema.ts
@@ -1,4 +1,5 @@
1
-import {TIndexDescription} from '../../../types/api/schema';
+import type {TIndexDescription} from '../../../types/api/schema';
2
+import {toFormattedSize} from '../../FormattedBytes/utils';
3
4
import {createInfoFormatter} from '../utils';
5
@@ -8,6 +9,7 @@ export const formatTableIndexItem = createInfoFormatter<TIndexDescription>({
8
9
State: (value) => value?.substring(11), // trims EIndexState prefix
10
KeyColumnNames: (value) => value?.join(', '),
11
DataColumnNames: (value) => value?.join(', '),
12
+ DataSize: toFormattedSize,
13
},
14
labels: {
15
KeyColumnNames: 'Columns',
0 commit comments