From 167774e3b0858f9931a974d6b3e043b5ecb56993 Mon Sep 17 00:00:00 2001 From: Yvo Brevoort Date: Tue, 10 May 2022 09:30:08 +0200 Subject: [PATCH] set last modified when the card was found instead of trying to change it on the -1 index. --- src/store/card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/store/card.js b/src/store/card.js index 06f6835fa..11561749e 100644 --- a/src/store/card.js +++ b/src/store/card.js @@ -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)