diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-09-19 16:45:30 +0200 |
---|---|---|
committer | Carl Schwan <carl@carlschwan.eu> | 2022-09-19 18:28:40 +0200 |
commit | f0cd60b21bd5d1a0d493dbe222743d3c3040bc98 (patch) | |
tree | ee232f11de477db21884103132913790f798fa04 /core/src | |
parent | ea08fabca3c10370d393ab10480fd82c36e1eaac (diff) | |
download | nextcloud-server-f0cd60b21bd5d1a0d493dbe222743d3c3040bc98.tar.gz nextcloud-server-f0cd60b21bd5d1a0d493dbe222743d3c3040bc98.zip |
Clear search results when remove search query
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/views/UnifiedSearch.vue | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/src/views/UnifiedSearch.vue b/core/src/views/UnifiedSearch.vue index 5d0a2b62a22..60ef3ef0309 100644 --- a/core/src/views/UnifiedSearch.vue +++ b/core/src/views/UnifiedSearch.vue @@ -444,6 +444,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 } |