fix: Only request attachments if there are any
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -65,7 +65,9 @@ export default {
|
|||||||
cardId: {
|
cardId: {
|
||||||
immediate: true,
|
immediate: true,
|
||||||
handler() {
|
handler() {
|
||||||
|
if (this.$store.getters.cardById(this.cardId)?.attachmentCount > 0) {
|
||||||
this.fetchAttachments(this.cardId)
|
this.fetchAttachments(this.cardId)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user