Skip to content

Commit

Permalink
Merge pull request #452 from hmcts/EXUI-1781-add-current-user-to-user…
Browse files Browse the repository at this point in the history
…-searches

Ex UI 1781 add current user to user searches
  • Loading branch information
RiteshHMCTS committed May 7, 2024
2 parents 0977518 + f415252 commit d4dcfb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/rpx-xui-common-lib",
"version": "2.0.17",
"version": "2.0.18",
"engines": {
"node": ">=18.17.0"
},
Expand Down
2 changes: 1 addition & 1 deletion projects/exui-common-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hmcts/rpx-xui-common-lib",
"version": "2.0.17",
"version": "2.0.18",
"peerDependencies": {
"launchdarkly-js-client-sdk": "^2.15.2",
"ngx-pagination": "^3.2.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export class FindAPersonService {
const people = caseworkers ? this.mapCaseworkers(caseworkers, roleCategory) : [];
const finalPeopleList = people.filter(person => person && person.name && person.name.toLowerCase().includes(searchTerm));
return searchOptions.userIncluded ? finalPeopleList.filter(person => person && person.id !== this.assignedUser)
: finalPeopleList.filter(person => person && person.id !== this.userId && person.id !== this.assignedUser);
: finalPeopleList.filter(person => person?.id !== this.assignedUser);
}

public searchJudicial(value: string, serviceId: string): Observable<JudicialUserModel[]> {
Expand Down

0 comments on commit d4dcfb4

Please sign in to comment.