Skip to content

Commit d70e311

Browse files
committed
fix(Tenant): display all table props in overview
1 parent ca5fec6 commit d70e311

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/containers/Tenant/Schema/SchemaInfoViewer/SchemaInfoViewer.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ class SchemaInfoViewer extends React.Component {
2828
if (data) {
2929
const {PathDescription = {}} = data;
3030
const {TableStats = {}, TabletMetrics = {}} = PathDescription;
31-
const tableStatsInfo =
32-
TableStats &&
33-
Object.keys(TableStats).map((key) => ({
34-
label: key,
35-
value: TableStats[key].toString(),
36-
}));
3731

38-
const tabletMetricsInfo =
39-
TableStats &&
40-
Object.keys(TabletMetrics).map((key) => ({
41-
label: key,
42-
value: this.formatTabletMetricsValue(key, TabletMetrics[key].toString()),
43-
}));
32+
const tableStatsInfo = Object.keys(TableStats).map((key) => ({
33+
label: key,
34+
value: TableStats[key].toString(),
35+
}));
4436

45-
let generalInfo = Object.assign(tableStatsInfo, tabletMetricsInfo);
37+
const tabletMetricsInfo = Object.keys(TabletMetrics).map((key) => ({
38+
label: key,
39+
value: this.formatTabletMetricsValue(key, TabletMetrics[key].toString()),
40+
}));
41+
42+
let generalInfo = [
43+
...tabletMetricsInfo,
44+
...tableStatsInfo,
45+
];
4646
generalInfo = Object.assign(generalInfo);
4747

4848
const infoLength = Object.keys(generalInfo).length;

0 commit comments

Comments
 (0)