@ukhomeoffice/cop-react-form-renderer 6.15.5-alpha → 6.15.7-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.
@@ -77,6 +77,12 @@ const onCYAAction = (setPagePoint, action, pages, validate, components, data, se
77
77
  pages,
78
78
  components
79
79
  }, _objectSpread({}, data), _models.EventTypes.SUBMIT);
80
+ const formPagesAndComponents = {
81
+ pages,
82
+ components
83
+ };
84
+ console.log("Invoking clearOutUncompletedRoutes");
85
+ _helpers.default.clearOutUncompletedRoutes(formPagesAndComponents, submissionData);
80
86
  submissionData.formStatus = _helpers.default.getSubmissionStatus(type, pages, pageId, action, submissionData, currentTask, true);
81
87
  setData(submissionData);
82
88
  // 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.5-alpha",
3
+ "version": "6.15.7-alpha",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "clean": "rimraf dist",