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 f09c4f18f48..0bb708db91e 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 @@ -160,7 +160,7 @@ export class SearchFacetFilterComponent implements OnInit, OnDestroy { this.currentUrl = this.router.url; 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, })), );