From 9f80071b1c399a27a40f315ca2ce6838c9186ade Mon Sep 17 00:00:00 2001 From: Robbie Antenesse Date: Wed, 22 May 2019 14:14:10 -0600 Subject: [PATCH] Fix updated words losing createdOn --- src/js/wordManagement.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/wordManagement.js b/src/js/wordManagement.js index 8614b35..72ae7ea 100644 --- a/src/js/wordManagement.js +++ b/src/js/wordManagement.js @@ -107,6 +107,7 @@ export function updateWord(word, wordId) { console.error('Could not find word to update'); } else { word.lastUpdated = getTimestampInSeconds(); + word.createdOn = window.currentDictionary.words[wordIndex].createdOn; window.currentDictionary.words[wordIndex] = word; addMessage('Word Updated Successfully'); sortWords(true);