Fix updated words losing createdOn
This commit is contained in:
parent
cfb4563909
commit
9f80071b1c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue