@ukhomeoffice/cop-react-form-renderer 6.14.1 → 6.14.3-alpha

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.
@@ -75,7 +75,8 @@ const setupDefaultObjectValue = (defaultObject, data) => {
75
75
  // defaultObject.sourced is an object with values that should
76
76
  // be used as field names to get values from data.
77
77
  if (defaultObj.sourced) {
78
- result = result !== null && result !== void 0 ? result : {};
78
+ var _result;
79
+ result = (_result = result) !== null && _result !== void 0 ? _result : {};
79
80
  Object.keys(defaultObj.sourced).every(key => {
80
81
  const sourcedValue = typeof defaultObj.sourced[key] === 'string' && (0, _getSourceData.default)(data, defaultObj.sourced[key]);
81
82
  if (sourcedValue === undefined && defaultObj.skipIfSourceInvalid) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ukhomeoffice/cop-react-form-renderer",
3
- "version": "6.14.1",
3
+ "version": "6.14.3-alpha",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",
@@ -16,7 +16,7 @@
16
16
  "yalc-publish": "yarn compile-with-maps && cp -r src dist/src && yalc publish --push"
17
17
  },
18
18
  "dependencies": {
19
- "@ukhomeoffice/cop-react-components": "4.7.4",
19
+ "@ukhomeoffice/cop-react-components": "4.7.6",
20
20
  "axios": "^0.23.0",
21
21
  "dayjs": "^1.11.0",
22
22
  "govuk-frontend": "^5.0.0",