[Monitoring] Fix Cluster Listing view (#103718)

* check for number of nodes

* remove console

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Sandra Gonzales 2021-06-29 20:42:37 -04:00 committed by GitHub
parent a22f08750b
commit 0de3df5f0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,7 +132,9 @@ const getColumns = (
'data-test-subj': 'nodesCount',
sortable: true,
render: (total, cluster) => (
<IsClusterSupported {...cluster}>{numeral(total).format('0,0')}</IsClusterSupported>
<IsClusterSupported {...cluster}>
{typeof total === 'number' ? numeral(total).format('0,0') : 0}
</IsClusterSupported>
),
},
{