@ukhomeoffice/cop-react-form-renderer 4.19.2-beta → 4.19.3

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.
@@ -17,7 +17,7 @@ var addLabel = function addLabel(target, component, data) {
17
17
  var value = _typeof(target.value) === 'object' ? target.value.value : target.value; // find the reference data item using the value
18
18
 
19
19
  var item = data.find(function (e) {
20
- return e.id === value;
20
+ return String(e.id) === value;
21
21
  }); // if item is null it means that the target.value can be used as a label otherwise use item.label
22
22
 
23
23
  target['label'] = item === undefined ? target.value : item.label;
@@ -292,8 +292,8 @@ var InternalFormRenderer = function InternalFormRenderer(_ref2) {
292
292
  (0, _react.useEffect)(function () {
293
293
  if (newPageId !== undefined) setPageId(newPageId);
294
294
  }, [newPageId]); // Handle actions from pages.
295
- // (patch captures payload ready field name and value,
296
- // patchLabel captures non ID values
295
+ // (patch captures payload-ready field name and value,
296
+ // patchLabel captures non-ID values
297
297
  // for display purposes after submission.)
298
298
 
299
299
  var onPageAction = function onPageAction(action, patch, patchLabel) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ukhomeoffice/cop-react-form-renderer",
3
- "version": "4.19.2-beta",
3
+ "version": "4.19.3",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",