Skip to content

Commit

Permalink
120256: Ensure searchOptions$ is a SearchOptions and not a plain object
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevryghem committed Nov 25, 2024
1 parent 93b22cb commit e4daf2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})),
);
Expand Down

0 comments on commit e4daf2b

Please sign in to comment.