@hmcts/ccd-case-ui-toolkit 4.18.21-old-case-id-fix → 4.18.21-update-request-caseid

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.
package/dist/index.umd.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @hmcts/ccd-case-ui-toolkit - Case UI Toolkit
3
- * @version v4.18.21-old-case-id-fix
3
+ * @version v4.18.21-update-request-caseid
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -23683,7 +23683,7 @@ var CaseChallengedAccessRequestComponent = /** @class */ (function () {
23683
23683
  // Initiate Challenged Access Request
23684
23684
  if (this.formGroup.valid) {
23685
23685
  // Get the Case Reference (for which access is being requested) from the ActivatedRouteSnapshot data
23686
- var caseId = this.route.snapshot.data.case.case_id;
23686
+ var caseId = this.route.snapshot.params.cid;
23687
23687
  var radioSelectedValue = this.formGroup.get(this.radioSelectedControlName).value;
23688
23688
  // Get the index of the selected AccessReason enum value. Can't use Object.values because it's not available in
23689
23689
  // < ES2017!
@@ -24638,7 +24638,7 @@ var CaseSpecificAccessRequestComponent = /** @class */ (function () {
24638
24638
  // Initiate Specific Access Request
24639
24639
  if (this.formGroup.valid) {
24640
24640
  // Get the Case Reference (for which access is being requested) from the ActivatedRouteSnapshot data
24641
- var caseId = this.route.snapshot.data.case.case_id;
24641
+ var caseId = this.route.snapshot.params.cid;
24642
24642
  var specificAccessRequest = {
24643
24643
  specificReason: this.formGroup.get(this.specificReasonControlName).value
24644
24644
  };