1
0

Merge remote-tracking branch 'alex/fix-scope-issues-on-search-form_contribute-7.6' into w2p-121534_removed-metadata-export-search-request-for-non-admins-on-search_contribute-main

This commit is contained in:
Alexandre Vryghem
2024-11-25 22:31:24 +01:00

View File

@@ -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,
})),
);