Skip to content
Snippets Groups Projects
Commit f72343bd authored by Art Lowel's avatar Art Lowel
Browse files

Fix searchParams readonly error in the subission

parent 77f6294b
No related branches found
No related tags found
No related merge requests found
......@@ -71,7 +71,9 @@ export class CollectionDataService extends ComColDataService<Collection> {
*/
getAuthorizedCollectionByCommunity(communityId: string, options: FindAllOptions = {}): Observable<RemoteData<PaginatedList<Collection>>> {
const searchHref = 'findAuthorizedByCommunity';
options.searchParams = [new SearchParam('uuid', communityId)];
options = Object.assign({}, options, {
searchParams: [new SearchParam('uuid', communityId)]
});
return this.searchBy(searchHref, options).pipe(
filter((collections: RemoteData<PaginatedList<Collection>>) => !collections.isResponsePending));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment