mod-build 4.0.78-beta.2 → 4.0.78
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/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
- Updating `mergeDefaultFormFieldConfig` to be recursive and merge to nested fields (so we can wrap multiple fields in a `fieldset`).
|
|
6
6
|
|
|
7
|
+
## 4.0.77
|
|
8
|
+
|
|
9
|
+
- Updated `get-default-trade-questions` to clone the steps object so that each `steps: {}` configuration in the template.js will stay independent of one another
|
|
10
|
+
|
|
7
11
|
## 4.0.76
|
|
8
12
|
|
|
9
13
|
- Discarded usage of qs_gtm_container_id and has-qs-params function, which is no longer necessary and we will only rely on gtm_container_id that is set in site config
|
package/package.json
CHANGED
|
@@ -7,7 +7,9 @@ function mergeDefaultTradeQuestionsConfigOnSteps(config, steps) {
|
|
|
7
7
|
if (!config || typeof config !== 'object') return;
|
|
8
8
|
|
|
9
9
|
if (config.steps && typeof config.steps === 'object' && config.steps.items) {
|
|
10
|
-
|
|
10
|
+
// cloning steps to keep multiple steps: {} objects independent
|
|
11
|
+
const clonedSteps = JSON.parse(JSON.stringify(steps));
|
|
12
|
+
mergeDefaultTradeQuestionsConfig(config, clonedSteps);
|
|
11
13
|
}
|
|
12
14
|
|
|
13
15
|
for (const key in config) {
|