Skip to content

Commit e4daf2b

Browse files
120256: Ensure searchOptions$ is a SearchOptions and not a plain object
1 parent 93b22cb commit e4daf2b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app/shared/search/search-filters/search-filter/search-facet-filter/search-facet-filter.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export class SearchFacetFilterComponent implements OnInit, OnDestroy {
118118
this.filterValues$ = new BehaviorSubject(createPendingRemoteDataObject());
119119
this.currentPage = this.getCurrentPage().pipe(distinctUntilChanged());
120120
this.searchOptions$ = this.searchConfigService.searchOptions.pipe(
121-
map((options: SearchOptions) => hasNoValue(this.scope) ? options : Object.assign({}, options, {
121+
map((options: SearchOptions) => hasNoValue(this.scope) ? options : Object.assign(new SearchOptions(options), {
122122
scope: this.scope,
123123
})),
124124
);

0 commit comments

Comments
 (0)