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 0c4cc37cb..e5163c7e0 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