set last modified when the card was found instead of trying to change it on the -1 index.

This commit is contained in:
Yvo Brevoort
2022-05-10 09:30:08 +02:00
parent 43540b008c
commit 167774e3b0

View File

@@ -249,8 +249,8 @@ export default {
const existingIndex = state.cards.findIndex(_card => _card.id === card.id)
if (existingIndex !== -1) {
Vue.set(state.cards[existingIndex], property, card[property])
Vue.set(state.cards[existingIndex], 'lastModified', Date.now() / 1000)
}
Vue.set(state.cards[existingIndex], 'lastModified', Date.now() / 1000)
},
cardIncreaseAttachmentCount(state, cardId) {
const existingIndex = state.cards.findIndex(_card => _card.id === cardId)