From 054d70cbe5344e39d0e5f277a7db2f26573e1efa Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 2 Oct 2022 13:39:53 +0200 Subject: [PATCH] fix: unset cover image when the task does not have one --- src/components/tasks/partials/kanban-card.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tasks/partials/kanban-card.vue b/src/components/tasks/partials/kanban-card.vue index af16719ed2..4bf4fa4728 100644 --- a/src/components/tasks/partials/kanban-card.vue +++ b/src/components/tasks/partials/kanban-card.vue @@ -129,12 +129,12 @@ const coverImageBlobUrl = ref(null) async function maybeDownloadCoverImage() { if (!props.task.coverImageAttachmentId) { + coverImageBlobUrl.value = null return } const attachment = props.task.attachments.find(a => a.id === props.task.coverImageAttachmentId) if (!attachment || !SUPPORTED_IMAGE_SUFFIX.some((suffix) => attachment.file.name.endsWith(suffix))) { - console.log('not an attachment') return }