@hmcts/ccd-case-ui-toolkit 7.3.65-srt-rc1 → 7.3.67-srt-rc1

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.
@@ -10191,7 +10191,7 @@ class CaseEditComponent {
10191
10191
  return of(true);
10192
10192
  }
10193
10193
  finishEventCompletionLogic(eventResponse) {
10194
- this.caseNotifier.cachedCaseView = null;
10194
+ this.caseNotifier.removeCachedCase();
10195
10195
  this.sessionStorageService.removeItem('eventUrl');
10196
10196
  const confirmation = this.buildConfirmation(eventResponse);
10197
10197
  if (confirmation && (confirmation.getHeader() || confirmation.getBody())) {
@@ -12028,6 +12028,8 @@ class CaseEditPageComponent {
12028
12028
  else {
12029
12029
  this.caseEdit.cancelled.emit();
12030
12030
  }
12031
+ // clear CaseView cache to allow any incidental changes to get picked up once the edit has cancelled
12032
+ this.caseEdit.caseNotifier.removeCachedCase();
12031
12033
  this.clearValidationErrors();
12032
12034
  this.multipageComponentStateService.reset();
12033
12035
  }