@ukhomeoffice/cop-react-form-renderer 4.64.0-bravo → 4.64.0-charlie

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.
@@ -95,7 +95,7 @@ var CollectionPage = function CollectionPage(_ref) {
95
95
  };
96
96
 
97
97
  var onInnerPageAction = function onInnerPageAction(action) {
98
- onAction(action, patch);
98
+ onAction(action, patch, {});
99
99
  };
100
100
 
101
101
  var onInnerPageChange = function onInnerPageChange(_ref3) {
@@ -428,7 +428,7 @@ var InternalFormRenderer = function InternalFormRenderer(_ref2) {
428
428
  var changedFieldName;
429
429
  var changedFieldValue;
430
430
 
431
- if (type === _models.FormTypes.HUB && Object.keys(patchLabel).length > 0) {
431
+ if (type === _models.FormTypes.HUB && patchLabel && Object.keys(patchLabel).length > 0) {
432
432
  changedFieldName = Object.keys(patchLabel)[0];
433
433
  changedFieldValue = Object.values(patchLabel)[0];
434
434
  } // Now submit the data to the backend...
@@ -149,6 +149,7 @@ describe('utils', function () {
149
149
  item: {
150
150
  value: 'currencyCode',
151
151
  label: 'currencyCode',
152
+ // eslint-disable-next-line no-template-curly-in-string
152
153
  format: '${currencyName} (${currencyCode})'
153
154
  },
154
155
  data: {
@@ -196,6 +197,7 @@ describe('utils', function () {
196
197
  item: {
197
198
  value: 'currencyCode',
198
199
  label: 'currencyCode',
200
+ // eslint-disable-next-line no-template-curly-in-string
199
201
  format: '${currencyName} (${currencyCode})'
200
202
  },
201
203
  data: {
@@ -233,6 +235,7 @@ describe('utils', function () {
233
235
  item: {
234
236
  value: 'currencyCode',
235
237
  label: 'currencyCode',
238
+ // eslint-disable-next-line no-template-curly-in-string
236
239
  format: '${currencyName} (${currencyCode})'
237
240
  },
238
241
  data: {
@@ -270,6 +273,7 @@ describe('utils', function () {
270
273
  item: {
271
274
  value: 'currencyCode',
272
275
  label: 'currencyCode',
276
+ // eslint-disable-next-line no-template-curly-in-string
273
277
  format: '${currencyName} (${currencyCode})'
274
278
  },
275
279
  data: {
@@ -307,6 +311,7 @@ describe('utils', function () {
307
311
  item: {
308
312
  value: 'currencyCode',
309
313
  label: 'currencyCode',
314
+ // eslint-disable-next-line no-template-curly-in-string
310
315
  format: '${currencyName} (${currencyCode})'
311
316
  },
312
317
  data: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ukhomeoffice/cop-react-form-renderer",
3
- "version": "4.64.0-bravo",
3
+ "version": "4.64.0-charlie",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",