lu-lowcode-package-form 0.11.18 → 0.11.19

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": "lu-lowcode-package-form",
3
- "version": "0.11.18",
3
+ "version": "0.11.19",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^4.8.1",
6
6
  "@dnd-kit/core": "^6.1.0",
@@ -412,7 +412,8 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
412
412
  if (Array.isArray(childIdentifier) && result.length > withFillIndex) {
413
413
  result = result[withFillIndex]
414
414
  }
415
- else result = JSON.stringify(result)
415
+ if (typeof result === "object" && result !== null)
416
+ result = JSON.stringify(result)
416
417
  }
417
418
  else if (typeof result === "object" && result !== null) {
418
419
  result = JSON.stringify(result)
@@ -514,7 +515,8 @@ const FormContainer = forwardRef(({ cols = 1, children, mode = "view" }, ref) =>
514
515
  if (Array.isArray(childIdentifier) && result.length > withFillIndex) {
515
516
  result = result[withFillIndex]
516
517
  }
517
- else result = JSON.stringify(result)
518
+ if (typeof result === "object" && result !== null)
519
+ result = JSON.stringify(result)
518
520
  }
519
521
  else if (typeof result === "object" && result !== null) {
520
522
  result = JSON.stringify(result)