We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d308cd commit 19ca3bdCopy full SHA for 19ca3bd
src/containers/Cluster/Cluster.tsx
@@ -124,13 +124,13 @@ function Cluster({
124
const getTabEntityCount = (tabId: ClusterTab) => {
125
switch (tabId) {
126
case clusterTabsIds.tenants: {
127
- return cluster?.Tenants;
+ return cluster?.Tenants ? Number(cluster.Tenants) : undefined;
128
}
129
case clusterTabsIds.nodes: {
130
- return cluster?.NodesTotal;
+ return cluster?.NodesTotal ? Number(cluster.NodesTotal) : undefined;
131
132
default: {
133
- return null;
+ return undefined;
134
135
136
};
@@ -153,7 +153,7 @@ function Cluster({
153
items={clusterTabs.map((item) => {
154
return {
155
...item,
156
- title: `${item.title} ${getTabEntityCount(item.id) || ''}`,
+ counter: getTabEntityCount(item.id),
157
158
})}
159
wrapTo={({id}, node) => {
0 commit comments