From 24b7c232f25ff455f60151f1c8782a07623329bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 17 Oct 2023 12:29:16 +0200 Subject: [PATCH] fix: Only request attachments if there are any MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/components/cards/CardCover.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/cards/CardCover.vue b/src/components/cards/CardCover.vue index 88c84a0db..b685aeb59 100644 --- a/src/components/cards/CardCover.vue +++ b/src/components/cards/CardCover.vue @@ -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) + } }, }, },