Skip to content

Commit

Permalink
Merge pull request #34140 from nextcloud/fix/carl/clean-search-result…
Browse files Browse the repository at this point in the history
…-when-resetting

Clear search results when remove search query
  • Loading branch information
CarlSchwan authored Sep 20, 2022
2 parents 93fc2ff + f0cd60b commit d0668ce
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions core/src/views/UnifiedSearch.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
4 changes: 2 additions & 2 deletions dist/core-unified-search.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/core-unified-search.js.map

Large diffs are not rendered by default.

0 comments on commit d0668ce

Please sign in to comment.