From f1256423ac16c4ca360526984827b848b9c7fbca Mon Sep 17 00:00:00 2001 From: azivner Date: Wed, 6 Dec 2017 22:31:28 -0500 Subject: [PATCH] fix handling of note history - when saving note history we save previous state, not current --- public/javascripts/dialogs/note_history.js | 2 +- services/build.js | 2 +- services/notes.js | 15 +++++++-------- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/public/javascripts/dialogs/note_history.js b/public/javascripts/dialogs/note_history.js index a6da3321b..3bbbfd2c8 100644 --- a/public/javascripts/dialogs/note_history.js +++ b/public/javascripts/dialogs/note_history.js @@ -27,7 +27,7 @@ const noteHistory = (function() { historyItems = await server.get('notes-history/' + noteId); for (const item of historyItems) { - const dateModified = getDateFromTS(item.date_modified_to); + const dateModified = getDateFromTS(item.date_modified_from); $("#note-history-list").append($('