fix(task): make an attachment cover image

This commit is contained in:
kolaente 2023-07-07 12:36:27 +02:00
parent c4f6465569
commit 2c4da79c1b
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 2 deletions

View File

@ -264,8 +264,8 @@ function copyUrl(attachment: IAttachment) {
}
async function setCoverImage(attachment: IAttachment | null) {
const task = await taskStore.setCoverImage(task, attachment)
emit('task-changed', task)
const updatedTask = await taskStore.setCoverImage(task, attachment)
emit('task-changed', updatedTask)
success({message: t('task.attachment.successfullyChangedCoverImage')})
}
</script>