Fix fetching attachments on card change

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2020-06-22 20:31:24 +02:00
parent e65f0989e1
commit 8f77aa005d
3 changed files with 6 additions and 10 deletions

View File

@@ -48,11 +48,7 @@ export default {
},
createAttachments(state, { cardId, attachments }) {
if (typeof state.attachments[cardId] === 'undefined') {
Vue.set(state.attachments, cardId, attachments)
} else {
state.attachments[cardId].push(attachments)
}
Vue.set(state.attachments, cardId, attachments)
},
updateAttachment(state, { cardId, attachment }) {