Fix attachment not being added if the task was not a kanban task
This commit is contained in:
@ -41,6 +41,7 @@ export default {
|
||||
addTaskAttachment(ctx, {taskId, attachment}) {
|
||||
const t = ctx.rootGetters['kanban/getTaskById'](taskId)
|
||||
if (t.task === null) {
|
||||
ctx.commit('attachments/add', attachment, {root: true})
|
||||
return
|
||||
}
|
||||
t.task.attachments.push(attachment)
|
||||
|
Reference in New Issue
Block a user