From f72343bd8e5823fbd737e840d0f4e395412d7583 Mon Sep 17 00:00:00 2001 From: Art Lowel Date: Thu, 28 Nov 2019 10:41:06 +0100 Subject: [PATCH] Fix searchParams readonly error in the subission --- src/app/core/data/collection-data.service.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/core/data/collection-data.service.ts b/src/app/core/data/collection-data.service.ts index 5661828615..9e4962ee71 100644 --- a/src/app/core/data/collection-data.service.ts +++ b/src/app/core/data/collection-data.service.ts @@ -71,7 +71,9 @@ export class CollectionDataService extends ComColDataService { */ getAuthorizedCollectionByCommunity(communityId: string, options: FindAllOptions = {}): Observable>> { 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>) => !collections.isResponsePending));