We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d6a4f6 + 569dfa4 commit fbe86ffCopy full SHA for fbe86ff
1 file changed
src/components/MailboxThread.vue
@@ -438,9 +438,9 @@ export default {
438
439
sortFavorites(enabled) {
440
if (enabled) {
441
- this.searchQuery = this.searchQuery ? 'not:starred' : this.searchQuery + ' not:starred'
442
- } else if (this.searchQuery.includes('not:starred')) {
443
- this.searchQuery = this.searchQuery.replace('not:starred', '')
+ this.searchQuery = this.searchQuery ? this.searchQuery + ' not:starred' : 'not:starred'
+ } else if (this.searchQuery?.includes('not:starred')) {
+ this.searchQuery = this.searchQuery.replace('not:starred', '').trim() || undefined
444
}
445
},
446
@@ -513,7 +513,7 @@ export default {
513
514
515
appendToSearch(str) {
516
- if (this.searchQuery === undefined) {
+ if (!this.searchQuery) {
517
return str
518
519
0 commit comments