Fix?
This commit is contained in:
parent
6a09826947
commit
e307f6df78
@ -48,7 +48,7 @@ export class SearchScreenComponent extends ListingComponent<ISearchListItem> imp
|
||||
{ label: _('search-screen.cols.pages'), width: 'auto' },
|
||||
];
|
||||
|
||||
readonly searchResults$ = merge(this._searchChanged$, this._filtersChanged$.pipe(skip(1))).pipe(
|
||||
readonly searchResults$ = merge(this._searchChanged$, this._filtersChanged$).pipe(
|
||||
startWith(this._routeQuery),
|
||||
tap(value => (this.searchService.searchValue = value.query)),
|
||||
tap(() => this._loadingService.start()),
|
||||
@ -93,6 +93,7 @@ export class SearchScreenComponent extends ListingComponent<ISearchListItem> imp
|
||||
|
||||
private get _searchChanged$(): Observable<ISearchInput> {
|
||||
return this.searchService.valueChanges$.pipe(
|
||||
skip(1),
|
||||
debounceTime(300),
|
||||
map(value => ({ query: value, dossierIds: [] })),
|
||||
);
|
||||
@ -100,6 +101,7 @@ export class SearchScreenComponent extends ListingComponent<ISearchListItem> imp
|
||||
|
||||
private get _filtersChanged$() {
|
||||
return this.filterService.filterGroups$.pipe(
|
||||
skip(1),
|
||||
map(groups => groups[0].filters.filter(v => v.checked).map(v => v.id)),
|
||||
map(dossierIds => toSearchInput(this.searchService.searchValue, dossierIds)),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user