Skip to content

Commit 4fcae18

Browse files
alexandrevryghemtdonohue
authored andcommitted
120256: Ensure searchOptions$ is a SearchOptions and not a plain object
1 parent 30718cb commit 4fcae18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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
@@ -160,7 +160,7 @@ export class SearchFacetFilterComponent implements OnInit, OnDestroy {
160160
this.currentUrl = this.router.url;
161161
this.currentPage = this.getCurrentPage().pipe(distinctUntilChanged());
162162
this.searchOptions$ = this.searchConfigService.searchOptions.pipe(
163-
map((options: SearchOptions) => hasNoValue(this.scope) ? options : Object.assign({}, options, {
163+
map((options: SearchOptions) => hasNoValue(this.scope) ? options : Object.assign(new SearchOptions(options), {
164164
scope: this.scope,
165165
})),
166166
);

0 commit comments

Comments
 (0)