@hmcts/ccd-case-ui-toolkit 4.12.10-task-event-completion → 4.12.12-task-event-completion

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/RELEASE-NOTES.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ### Version 4.12.0
4
4
  Add refunds functionality
5
5
 
6
- ### Version 4.12.10-task-event-completion"
6
+ ### Version 4.12.12-task-event-completion"
7
7
  **Task event completion and state machine** Task event completion and state machine
8
8
 
9
9
  ### Version 4.7.6-tab-not-defined-error"
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.12.10-task-event-completion
3
+ * @version v4.12.12-task-event-completion
4
4
  * @link undefined
5
5
  * @license MIT
6
6
  */
@@ -26216,6 +26216,13 @@ var EventStartGuard = /** @class */ (function () {
26216
26216
  };
26217
26217
  EventStartGuard.prototype.checkForTasks = function (payload, caseId, eventId, taskId) {
26218
26218
  if (payload.task_required_for_event) {
26219
+ // There are some issues in EventTriggerResolver/CaseService and/or CCD for some events
26220
+ // which triggers the CanActivate guard again.
26221
+ // If event start is initiated again, then we do not need to perform state machine processing again.
26222
+ // https://tools.hmcts.net/jira/browse/EUI-5489
26223
+ if (this.router && this.router.url && this.router.url.includes('event-start')) {
26224
+ return rxjs_1.of(true);
26225
+ }
26219
26226
  this.router.navigate(["/cases/case-details/" + caseId + "/event-start"], { queryParams: { caseId: caseId, eventId: eventId, taskId: taskId } });
26220
26227
  return rxjs_1.of(false);
26221
26228
  }