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 d70e311 commit 783a20bCopy full SHA for 783a20b
src/containers/Tenant/Schema/SchemaInfoViewer/SchemaInfoViewer.js
@@ -39,18 +39,15 @@ class SchemaInfoViewer extends React.Component {
39
value: this.formatTabletMetricsValue(key, TabletMetrics[key].toString()),
40
}));
41
42
- let generalInfo = [
+ const generalInfo = [
43
...tabletMetricsInfo,
44
...tableStatsInfo,
45
];
46
- generalInfo = Object.assign(generalInfo);
47
-
48
- const infoLength = Object.keys(generalInfo).length;
49
+
50
return (
51
<div className={b()}>
52
<div className={b('item')}>
53
- {infoLength ? (
+ {generalInfo.length ? (
54
<InfoViewer info={generalInfo}></InfoViewer>
55
) : (
56
<div>Empty</div>
0 commit comments