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');
|
console.error('Could not find word to update');
|
||||||
} else {
|
} else {
|
||||||
word.lastUpdated = getTimestampInSeconds();
|
word.lastUpdated = getTimestampInSeconds();
|
||||||
|
word.createdOn = window.currentDictionary.words[wordIndex].createdOn;
|
||||||
window.currentDictionary.words[wordIndex] = word;
|
window.currentDictionary.words[wordIndex] = word;
|
||||||
addMessage('Word Updated Successfully');
|
addMessage('Word Updated Successfully');
|
||||||
sortWords(true);
|
sortWords(true);
|
||||||
|
|
Loading…
Reference in New Issue