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) {