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: {
|
||||
immediate: true,
|
||||
handler() {
|
||||
this.fetchAttachments(this.cardId)
|
||||
if (this.$store.getters.cardById(this.cardId)?.attachmentCount > 0) {
|
||||
this.fetchAttachments(this.cardId)
|
||||
}
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user