@ukhomeoffice/cop-react-form-renderer 6.15.3-alpha → 6.15.5-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.
@@ -30,6 +30,14 @@ const onCYAAction = (setPagePoint, action, pages, validate, components, data, se
30
30
  pages,
31
31
  components
32
32
  }, _objectSpread({}, data), _models.EventTypes.SUBMIT);
33
+
34
+ // Cleanse hidden data
35
+ const formPagesAndComponents = {
36
+ pages,
37
+ components
38
+ };
39
+ console.log("Invoking clearOutUncompletedRoutes");
40
+ _helpers.default.clearOutUncompletedRoutes(formPagesAndComponents, submissionData);
33
41
  submissionData.formStatus = _helpers.default.getSubmissionStatus(type, pages, pageId, action, submissionData, currentTask, true);
34
42
  setData(submissionData);
35
43
  // Now submit the data to the backend...
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ukhomeoffice/cop-react-form-renderer",
3
- "version": "6.15.3-alpha",
3
+ "version": "6.15.5-alpha",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",