From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Tue, 25 Oct 2022 20:43:13 +0000 (-0700) Subject: Fix losing search when adding relative date X-Git-Tag: v1.10.0-beta.rc1~1^2~32^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84b3fee0f98aeef4573930c0b1527cabb7927855;p=thirdparty%2Fpaperless-ngx.git Fix losing search when adding relative date --- diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts index 0c4cc37cbe..e5163c7e08 100644 --- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts +++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts @@ -300,8 +300,10 @@ export class FilterEditorComponent implements OnInit, OnDestroy { queryArgs.splice(queryArgs.indexOf(arg), 1) } }) - this._textFilter = queryArgs.join(',') - this.textFilterTarget = TEXT_FILTER_TARGET_FULLTEXT_QUERY + if (queryArgs.length) { + this._textFilter = queryArgs.join(',') + this.textFilterTarget = TEXT_FILTER_TARGET_FULLTEXT_QUERY + } break case FILTER_FULLTEXT_MORELIKE: this._moreLikeId = +rule.value