Skip to content

Commit 24b7c23

Browse files
committed
fix: Only request attachments if there are any
Signed-off-by: Julius Härtl <jus@bitgrid.net>
1 parent 6e1e6a8 commit 24b7c23

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/components/cards/CardCover.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ export default {
6565
cardId: {
6666
immediate: true,
6767
handler() {
68-
this.fetchAttachments(this.cardId)
68+
if (this.$store.getters.cardById(this.cardId)?.attachmentCount > 0) {
69+
this.fetchAttachments(this.cardId)
70+
}
6971
},
7072
},
7173
},

0 commit comments

Comments
 (0)