@hmcts/ccd-case-ui-toolkit 6.19.9-case-flags-v2-1-manage-case-flags-missing-header → 6.19.9-case-flags-exui-848-fix

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.
@@ -10152,8 +10152,10 @@
10152
10152
  // delete fields which are not part of the case event journey wizard pages case fields
10153
10153
  this.validPageListCaseFieldsService.deleteNonValidatedFields(this.validPageList, caseEventData.data, eventTrigger.case_fields, false);
10154
10154
  var pageListCaseFields = this.validPageListCaseFieldsService.validPageListCaseFields(this.validPageList, caseEventData.data, eventTrigger.case_fields);
10155
- // // Remove unnesessary case fields which are hidden
10156
- this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
10155
+ // Remove unnecessary case fields which are hidden, only if the submission is *not* for Case Flags
10156
+ if (!this.isCaseFlagSubmission) {
10157
+ this.formValueService.removeUnnecessaryFields(caseEventData.data, pageListCaseFields, true, true);
10158
+ }
10157
10159
  caseEventData.event_token = eventTrigger.event_token;
10158
10160
  caseEventData.ignore_warning = this.ignoreWarning;
10159
10161
  if (this.confirmation) {