Fix quick filtering

This commit is contained in:
Michael Shamoon
2022-03-27 00:09:09 -07:00
parent 22a90363f6
commit 9185d5a8ef
4 changed files with 14 additions and 21 deletions

View File

@@ -81,7 +81,10 @@ export class AppFrameComponent {
search() {
this.closeMenu()
this.list.quickFilter([
{ rule_type: FILTER_FULLTEXT_QUERY, value: this.searchField.value },
{
rule_type: FILTER_FULLTEXT_QUERY,
value: (this.searchField.value as string).trim(),
},
])
}

View File

@@ -151,8 +151,9 @@ export class DocumentListComponent implements OnInit, OnDestroy, AfterViewInit {
ngAfterViewInit(): void {
this.filterEditor.filterRulesChange.subscribe({
next: (rules) => {
const params = this.documentService.queryParams
next: (filterRules) => {
const params =
this.documentService.filterRulesToQueryParams(filterRules)
// if we were on a saved view we navigate 'away' to /documents
let base = []