Skip to content

Commit

Permalink
Merge pull request #10673 from nextcloud/bug/noid/search-reset-filters
Browse files Browse the repository at this point in the history
fix: reset filter does not work
  • Loading branch information
kesselb authored Feb 11, 2025
2 parents b89feb2 + f0e847b commit 7843698
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/components/SearchMessages.vue
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,6 @@ export default {
})
},
resetFilter() {
const prevQuery = this.query
this.match = 'allof'
this.query = ''
this.selectedTags = []
Expand All @@ -554,10 +553,7 @@ export default {
this.startDate = null
this.endDate = null
this.mentionsMe = false
// Need if there is only tag filter or recipients filter
if (prevQuery === '') {
this.sendQueryEvent()
}
this.sendQueryEvent()
},
addTag(tag, type) {
if (typeof tag === 'string') {
Expand Down

0 comments on commit 7843698

Please sign in to comment.