Clear search results when remove search query

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
Carl Schwan 2022-09-19 16:45:30 +02:00 committed by nextcloud-command
parent 1699b908a5
commit e73ef4291d
3 changed files with 6 additions and 3 deletions

View file

@ -410,6 +410,9 @@ export default {
// Do not search if not long enough
if (this.query.trim() === '' || this.isShortQuery) {
for (const type of this.typesIDs) {
this.$delete(this.results, type)
}
return
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long