Skip to content

Commit

Permalink
[Monitoring] Fix Cluster Listing view (elastic#103718)
Browse files Browse the repository at this point in the history
* check for number of nodes

* remove console

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
neptunian and kibanamachine committed Jun 30, 2021
1 parent 6ae1242 commit 32dd5c9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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>
),
},
{
Expand Down

0 comments on commit 32dd5c9

Please sign in to comment.