Skip to content

Commit

Permalink
Merge branch 'exui-1717-add-task-failure-logs' of https://github.com/…
Browse files Browse the repository at this point in the history
…hmcts/ccd-case-ui-toolkit into exui-1717-add-task-failure-logs
  • Loading branch information
RiteshHMCTS committed Nov 26, 2024
2 parents 9a68d88 + 748431f commit 985e505
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion RELEASE-NOTES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## RELEASE NOTES
## RELEASE NOTES

### Version 7.0.75-exui-2515
**EXUI-2515** case-link-issue

### Version 7.0.75-exui-1717-rc1
**EXUI-1717** add-task-failure-logs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,13 @@ export class WriteLinkedCasesFieldComponent extends AbstractFieldWriteComponent
next: (reasons) => {
// Sort in ascending order
const linkCaseReasons = reasons.list_of_values.sort((a, b) => (a.value_en > b.value_en) ? 1 : -1);

this.linkedCasesService.linkCaseReasons = linkCaseReasons?.filter((reason) => reason.value_en !== 'Other');
if (linkCaseReasons?.filter((reason) => reason.value_en !== 'Other').length > 0) {
this.linkedCasesService.linkCaseReasons = linkCaseReasons?.filter((reason) => reason.value_en !== 'Other');
}
// Move Other option to the end of the list
this.linkedCasesService.linkCaseReasons.push(linkCaseReasons?.find((reason) => reason.value_en === 'Other'));
if (linkCaseReasons?.find((reason) => reason.value_en === 'Other')) {
this.linkedCasesService.linkCaseReasons.push(linkCaseReasons?.find((reason) => reason.value_en === 'Other'));
}
}
});
}
Expand Down

0 comments on commit 985e505

Please sign in to comment.