Signed-off-by: Jakob Röhrl <jakob.roehrl@web.de>
This commit is contained in:
Jakob Röhrl
2020-03-11 11:58:33 +01:00
committed by Julius Härtl
parent d27a5ac9ba
commit b90842e717
5 changed files with 55 additions and 48 deletions

View File

@@ -62,7 +62,7 @@ export default {
deleteAttachment(state, deletedAttachment) {
const existingIndex = state.attachments[deletedAttachment.cardId].findIndex(a => a.id === deletedAttachment.id)
if (existingIndex !== -1) {
//state.attachments[deletedAttachment.cardId].splice(existingIndex, 1)
// state.attachments[deletedAttachment.cardId].splice(existingIndex, 1)
state.attachments[deletedAttachment.cardId][existingIndex].deletedAt = -1
}
},