@bpmn-io/form-js-viewer 2.0.0 → 2.0.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.cjs +5 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +6 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/dist/assets/theme.css +0 -168
package/dist/index.cjs
CHANGED
|
@@ -1428,10 +1428,11 @@ function useFilteredFormData() {
|
|
|
1428
1428
|
const conditionChecker = useService('conditionChecker', false);
|
|
1429
1429
|
return hooks.useMemo(() => {
|
|
1430
1430
|
const newData = conditionChecker ? conditionChecker.applyConditions(data, data) : data;
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1431
|
+
|
|
1432
|
+
// deep-merge newData over a clone of initialData, so keys pruned from
|
|
1433
|
+
// newData (e.g. by a hidden group) fall back to their initial value
|
|
1434
|
+
// instead of the whole branch disappearing
|
|
1435
|
+
return minDash.merge(clone(initialData || {}), newData);
|
|
1435
1436
|
}, [conditionChecker, data, initialData]);
|
|
1436
1437
|
}
|
|
1437
1438
|
|