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