From e4daf2b82580ed00aab83395e25fcf62ac689b7d Mon Sep 17 00:00:00 2001 From: Alexandre Vryghem Date: Mon, 25 Nov 2024 15:17:34 +0100 Subject: [PATCH] 120256: Ensure searchOptions$ is a SearchOptions and not a plain object --- .../search-facet-filter/search-facet-filter.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/shared/search/search-filters/search-filter/search-facet-filter/search-facet-filter.component.ts b/src/app/shared/search/search-filters/search-filter/search-facet-filter/search-facet-filter.component.ts index 994b488d9c7..0edbeea7ea1 100644 --- a/src/app/shared/search/search-filters/search-filter/search-facet-filter/search-facet-filter.component.ts +++ b/src/app/shared/search/search-filters/search-filter/search-facet-filter/search-facet-filter.component.ts @@ -118,7 +118,7 @@ export class SearchFacetFilterComponent implements OnInit, OnDestroy { this.filterValues$ = new BehaviorSubject(createPendingRemoteDataObject()); this.currentPage = this.getCurrentPage().pipe(distinctUntilChanged()); this.searchOptions$ = this.searchConfigService.searchOptions.pipe( - map((options: SearchOptions) => hasNoValue(this.scope) ? options : Object.assign({}, options, { + map((options: SearchOptions) => hasNoValue(this.scope) ? options : Object.assign(new SearchOptions(options), { scope: this.scope, })), );