set last modified when the card was found instead of trying to change it on the -1 index.
This commit is contained in:
@@ -249,8 +249,8 @@ export default {
|
|||||||
const existingIndex = state.cards.findIndex(_card => _card.id === card.id)
|
const existingIndex = state.cards.findIndex(_card => _card.id === card.id)
|
||||||
if (existingIndex !== -1) {
|
if (existingIndex !== -1) {
|
||||||
Vue.set(state.cards[existingIndex], property, card[property])
|
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) {
|
cardIncreaseAttachmentCount(state, cardId) {
|
||||||
const existingIndex = state.cards.findIndex(_card => _card.id === cardId)
|
const existingIndex = state.cards.findIndex(_card => _card.id === cardId)
|
||||||
|
|||||||
Reference in New Issue
Block a user