diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-09-20 13:16:58 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 13:16:58 +0300 |
commit | d0668ce3b746ce150c9552878a49fbe856634e14 (patch) | |
tree | 83f2d5db0af9555ffb2cbe93f0b77f1c1c97f014 /core | |
parent | 93fc2ffc446005d83c9bc9f06fd78d7d621eef78 (diff) | |
parent | f0cd60b21bd5d1a0d493dbe222743d3c3040bc98 (diff) |
Merge pull request #34140 from nextcloud/fix/carl/clean-search-result-when-resetting
Clear search results when remove search query
Diffstat (limited to 'core')
-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 } |