Skip to content

Commit

Permalink
fixup! fix: thread disappearing after refresh
Browse files Browse the repository at this point in the history
Signed-off-by: greta <gretadoci@gmail.com>
  • Loading branch information
GretaD committed Sep 2, 2024
1 parent ebb7a3d commit b7af783
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MailboxThread.vue
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,8 @@ export default {
},
methods: {
async fetchEnvelopes() {
if (!this.hasEnvelopes) {
const existingEnvelopes = this.$store.getters.getEnvelopes(this.mailbox.databaseId, this.searchQuery || '')
if (!existingEnvelopes.length) {
await this.$store.dispatch('fetchEnvelopes', {
mailboxId: this.mailbox.databaseId,
query: this.searchQuery || '',
Expand Down

0 comments on commit b7af783

Please sign in to comment.