From f1852f1f33401576ae5033f54613c96cd80e0f95 Mon Sep 17 00:00:00 2001 From: Dominik Pschenitschni Date: Mon, 3 Oct 2022 13:11:07 +0000 Subject: [PATCH] fix: attachment deletion (#2472) Co-authored-by: Dominik Pschenitschni Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/2472 Co-authored-by: Dominik Pschenitschni Co-committed-by: Dominik Pschenitschni --- src/components/tasks/partials/attachments.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tasks/partials/attachments.vue b/src/components/tasks/partials/attachments.vue index caa0d067..5b70d84b 100644 --- a/src/components/tasks/partials/attachments.vue +++ b/src/components/tasks/partials/attachments.vue @@ -214,7 +214,7 @@ async function deleteAttachment() { try { const r = await attachmentService.delete(attachmentToDelete.value) - attachmentStore.removeById(this.attachmentToDelete.id) + attachmentStore.removeById(attachmentToDelete.value.id) success(r) setAttachmentToDelete(null) } catch(e) {