We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12a8583 commit 4be42ecCopy full SHA for 4be42ec
src/containers/Tenants/Tenants.js
@@ -261,9 +261,9 @@ class Tenants extends React.Component {
261
name: 'NodeIds',
262
header: 'Nodes',
263
width: 100,
264
- accessor: ({NodeIds}) => NodeIds.length,
265
- sortAccessor: ({NodeIds}) => NodeIds.length,
266
- render: ({value}) => formatNumber(value) || '—',
+ accessor: ({NodeIds}) => NodeIds?.length || 0,
+ sortAccessor: ({NodeIds}) => NodeIds?.length || 0,
+ render: ({value}) => formatNumber(value),
267
align: DataTable.RIGHT,
268
defaultOrder: DataTable.DESCENDING,
269
},
0 commit comments