fix handling of note history - when saving note history we save previous state, not current

This commit is contained in:
azivner
2017-12-06 22:31:28 -05:00
parent 4f47c4d6e9
commit f1256423ac
3 changed files with 9 additions and 10 deletions

View File

@@ -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($('<option>', {
value: item.note_history_id,