ydb-embedded-ui 1.14.0 → 1.14.1

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.14.1](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.14.0...v1.14.1) (2022-09-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **Tenants:** display nodes count 0 for undefined NodeIds ([4be42ec](https://github.com/ydb-platform/ydb-embedded-ui/commit/4be42eca84557929837e799d7d8dcebd858470d4))
9
+
3
10
  ## [1.14.0](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.13.2...v1.14.0) (2022-09-16)
4
11
 
5
12
 
@@ -261,9 +261,9 @@ class Tenants extends React.Component {
261
261
  name: 'NodeIds',
262
262
  header: 'Nodes',
263
263
  width: 100,
264
- accessor: ({NodeIds}) => NodeIds.length,
265
- sortAccessor: ({NodeIds}) => NodeIds.length,
266
- render: ({value}) => formatNumber(value) || '—',
264
+ accessor: ({NodeIds}) => NodeIds?.length || 0,
265
+ sortAccessor: ({NodeIds}) => NodeIds?.length || 0,
266
+ render: ({value}) => formatNumber(value),
267
267
  align: DataTable.RIGHT,
268
268
  defaultOrder: DataTable.DESCENDING,
269
269
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "files": [
5
5
  "dist"
6
6
  ],