@ukhomeoffice/cop-react-form-renderer 6.15.6 → 6.15.7
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.
|
@@ -245,7 +245,7 @@ const findComponentDefinitionInForm = (pageComponentDef, componentByIdMap, compo
|
|
|
245
245
|
const componentInForm = (_ref = (_componentByIdMap$get = componentByIdMap.get(pageComponentDef.use)) !== null && _componentByIdMap$get !== void 0 ? _componentByIdMap$get : componentByFieldIdMap.get(pageComponentDef.use)) !== null && _ref !== void 0 ? _ref : pageComponentDef;
|
|
246
246
|
|
|
247
247
|
// Create clone of component, so processing can make changes to it without changing the form
|
|
248
|
-
|
|
248
|
+
const componentInFormClone = JSON.parse(JSON.stringify(componentInForm));
|
|
249
249
|
if (pageComponentDef.use && pageComponentDef.show_when) {
|
|
250
250
|
componentInFormClone.show_when = pageComponentDef.show_when;
|
|
251
251
|
}
|