@gisce/react-ooui 2.0.0-alpha.60 → 2.0.0-alpha.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/react-ooui",
3
- "version": "2.0.0-alpha.60",
3
+ "version": "2.0.0-alpha.61",
4
4
  "engines": {
5
5
  "node": "20.5.0"
6
6
  },
@@ -15,12 +15,13 @@ const getTree = (treeView: TreeView): TreeOoui => {
15
15
  return tree;
16
16
  };
17
17
 
18
- function isPrimitive(value: any): boolean {
18
+ function canRenderValue(value: any): boolean {
19
19
  return (
20
20
  typeof value === "number" ||
21
21
  typeof value === "string" ||
22
22
  typeof value === "boolean" ||
23
- value === null
23
+ value === null ||
24
+ value === undefined
24
25
  );
25
26
  }
26
27
 
@@ -41,7 +42,7 @@ const getTableColumns = (
41
42
  };
42
43
  } else {
43
44
  render = (value: any) => {
44
- return isPrimitive(value) ? (
45
+ return canRenderValue(value) ? (
45
46
  value
46
47
  ) : (
47
48
  <p style={{ color: "red" }}>