File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,13 +124,13 @@ function Cluster({
124
124
const getTabEntityCount = ( tabId : ClusterTab ) => {
125
125
switch ( tabId ) {
126
126
case clusterTabsIds . tenants : {
127
- return cluster ?. Tenants ;
127
+ return cluster ?. Tenants ? Number ( cluster . Tenants ) : undefined ;
128
128
}
129
129
case clusterTabsIds . nodes : {
130
- return cluster ?. NodesTotal ;
130
+ return cluster ?. NodesTotal ? Number ( cluster . NodesTotal ) : undefined ;
131
131
}
132
132
default : {
133
- return null ;
133
+ return undefined ;
134
134
}
135
135
}
136
136
} ;
@@ -153,7 +153,7 @@ function Cluster({
153
153
items = { clusterTabs . map ( ( item ) => {
154
154
return {
155
155
...item ,
156
- title : ` ${ item . title } ${ getTabEntityCount ( item . id ) || '' } ` ,
156
+ counter : getTabEntityCount ( item . id ) ,
157
157
} ;
158
158
} ) }
159
159
wrapTo = { ( { id} , node ) => {
You can’t perform that action at this time.
0 commit comments