Skip to content

Commit 8689186

Browse files
committed
[CST-13245] Fix isMemberOf method
1 parent 9737ac9 commit 8689186

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/core/eperson/group-data.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class GroupDataService extends IdentifiableDataService<Group> implements
5656
public subgroupsEndpoint = 'subgroups';
5757

5858
private createData: CreateData<Group>;
59-
private searchData: SearchData<Group>;
59+
private searchData: SearchDataImpl<Group>;
6060
private patchData: PatchData<Group>;
6161
private deleteData: DeleteData<Group>;
6262

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

94-
return this.searchBy(searchHref, options).pipe(
94+
return this.findByHref(this.searchData.getSearchByHref(searchHref, options)).pipe(
9595
getRemoteDataPayload(),
96-
map((groups: PaginatedList<Group>) => groups.totalElements > 0),
96+
map((group: Group) => isNotEmpty(group)),
9797
catchError(() => observableOf(false)),
9898
);
9999
}

0 commit comments

Comments
 (0)