@faasjs/ant-design 0.0.2-beta.340 → 0.0.2-beta.341
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/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -70,7 +70,7 @@ function DescriptionItemContent(props) {
|
|
|
70
70
|
propsCopy.item.type = "string";
|
|
71
71
|
setComputedProps(propsCopy);
|
|
72
72
|
}, [props]);
|
|
73
|
-
if (!computedProps
|
|
73
|
+
if (!computedProps)
|
|
74
74
|
return null;
|
|
75
75
|
if (computedProps.extendTypes && computedProps.extendTypes[computedProps.item.type])
|
|
76
76
|
if (computedProps.extendTypes[computedProps.item.type].children)
|
|
@@ -86,6 +86,8 @@ function DescriptionItemContent(props) {
|
|
|
86
86
|
return (0, import_react2.cloneElement)(computedProps.item.children, { value: computedProps.value });
|
|
87
87
|
if (computedProps.item.render)
|
|
88
88
|
return computedProps.item.render(computedProps.value, computedProps.values);
|
|
89
|
+
if (typeof computedProps.value === "undefined" || computedProps.value === null)
|
|
90
|
+
return null;
|
|
89
91
|
switch (computedProps.item.type) {
|
|
90
92
|
case "string[]":
|
|
91
93
|
return computedProps.value.join(", ");
|
package/dist/index.mjs
CHANGED
|
@@ -40,7 +40,7 @@ function DescriptionItemContent(props) {
|
|
|
40
40
|
propsCopy.item.type = "string";
|
|
41
41
|
setComputedProps(propsCopy);
|
|
42
42
|
}, [props]);
|
|
43
|
-
if (!computedProps
|
|
43
|
+
if (!computedProps)
|
|
44
44
|
return null;
|
|
45
45
|
if (computedProps.extendTypes && computedProps.extendTypes[computedProps.item.type])
|
|
46
46
|
if (computedProps.extendTypes[computedProps.item.type].children)
|
|
@@ -56,6 +56,8 @@ function DescriptionItemContent(props) {
|
|
|
56
56
|
return cloneElement(computedProps.item.children, { value: computedProps.value });
|
|
57
57
|
if (computedProps.item.render)
|
|
58
58
|
return computedProps.item.render(computedProps.value, computedProps.values);
|
|
59
|
+
if (typeof computedProps.value === "undefined" || computedProps.value === null)
|
|
60
|
+
return null;
|
|
59
61
|
switch (computedProps.item.type) {
|
|
60
62
|
case "string[]":
|
|
61
63
|
return computedProps.value.join(", ");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faasjs/ant-design",
|
|
3
|
-
"version": "0.0.2-beta.
|
|
3
|
+
"version": "0.0.2-beta.341",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"lodash": "*",
|
|
28
28
|
"react": "*",
|
|
29
29
|
"react-dom": "*",
|
|
30
|
-
"@faasjs/react": "^0.0.2-beta.
|
|
30
|
+
"@faasjs/react": "^0.0.2-beta.341"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/lodash": "*",
|