File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
src/containers/Tenant/Schema/SchemaInfoViewer Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments