From 903979b3f2317bbee21e34bd2cc50bf91998d5b7 Mon Sep 17 00:00:00 2001 From: Dick Choi Date: Sun, 29 May 2016 02:26:26 +0900 Subject: [PATCH] set updatedAt when dispatching SAVE_NOTE --- browser/main/store.js | 1 + 1 file changed, 1 insertion(+) diff --git a/browser/main/store.js b/browser/main/store.js index df0678b0..cc4194a4 100644 --- a/browser/main/store.js +++ b/browser/main/store.js @@ -125,6 +125,7 @@ function repositories (state = initialRepositories, action) { if (targetRepo == null) return state let targetNoteIndex = _.findIndex(targetRepo.notes, {key: action.note.key}) + action.note.updatedAt = Date.now() if (targetNoteIndex > -1) { targetRepo.notes.splice(targetNoteIndex, 1, action.note) } else {