Fix fetching attachments on card change
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -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 }) {
|
||||
|
||||
Reference in New Issue
Block a user