Skip to content

Commit

Permalink
fix: Only request attachments if there are any
Browse files Browse the repository at this point in the history
Signed-off-by: Julius H盲rtl <jus@bitgrid.net>
  • Loading branch information
juliushaertl committed Oct 17, 2023
1 parent 6e1e6a8 commit 24b7c23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/cards/CardCover.vue
Expand Up @@ -65,7 +65,9 @@ export default {
cardId: {
immediate: true,
handler() {
this.fetchAttachments(this.cardId)
if (this.$store.getters.cardById(this.cardId)?.attachmentCount > 0) {
this.fetchAttachments(this.cardId)
}
},
},
},
Expand Down

0 comments on commit 24b7c23

Please sign in to comment.