fix: Only request attachments if there are any

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-10-17 12:29:16 +02:00
parent 6e1e6a8957
commit 24b7c232f2

View File

@@ -65,7 +65,9 @@ export default {
cardId: { cardId: {
immediate: true, immediate: true,
handler() { handler() {
this.fetchAttachments(this.cardId) if (this.$store.getters.cardById(this.cardId)?.attachmentCount > 0) {
this.fetchAttachments(this.cardId)
}
}, },
}, },
}, },