@next-core/brick-kit 2.158.1 → 2.158.2

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.
@@ -9801,7 +9801,7 @@
9801
9801
  }
9802
9802
  tplStack.set(tplTagName, tplCount + 1);
9803
9803
  }
9804
- if (brickConf.brick === formRenderer) {
9804
+ if (brickConf.brick === formRenderer && typeof brickConf.properties.formData === "object") {
9805
9805
  brickConf.properties.formData = JSON.stringify(brickConf.properties.formData);
9806
9806
  }
9807
9807
  var brick = {};
@@ -9856,7 +9856,7 @@
9856
9856
  yield _this7.kernel.loadDynamicBricksInBrickConf(expandedBrickConf);
9857
9857
  }
9858
9858
  if (brick.type === formRenderer) {
9859
- var formData = JSON.parse(brick.properties.formData);
9859
+ var formData = typeof brick.properties.formData === "string" ? JSON.parse(brick.properties.formData) : brick.properties.formData;
9860
9860
  expandedBrickConf = yield AsyncExpandCustomForm(formData, brickConf, brick.properties.isPreview, context);
9861
9861
  yield _this7.kernel.loadDynamicBricksInBrickConf(expandedBrickConf);
9862
9862
  }