File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments