Skip to content

Commit

Permalink
Merge branch 'dspace-cris-2023_02_x' into main-cris
Browse files Browse the repository at this point in the history
  • Loading branch information
atarix83 committed Feb 6, 2024
2 parents c1c5a66 + 8689186 commit 359ddec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/core/eperson/group-data.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class GroupDataService extends IdentifiableDataService<Group> implements
public subgroupsEndpoint = 'subgroups';

private createData: CreateData<Group>;
private searchData: SearchData<Group>;
private searchData: SearchDataImpl<Group>;
private patchData: PatchData<Group>;
private deleteData: DeleteData<Group>;

Expand Down Expand Up @@ -91,9 +91,9 @@ export class GroupDataService extends IdentifiableDataService<Group> implements
const options = new FindListOptions();
options.searchParams = [new RequestParam('groupName', groupName)];

return this.searchBy(searchHref, options).pipe(
return this.findByHref(this.searchData.getSearchByHref(searchHref, options)).pipe(
getRemoteDataPayload(),
map((groups: PaginatedList<Group>) => groups.totalElements > 0),
map((group: Group) => isNotEmpty(group)),
catchError(() => observableOf(false)),
);
}
Expand Down

0 comments on commit 359ddec

Please sign in to comment.