mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-04-30 15:23:11 +02:00
Fix updated words losing createdOn
This commit is contained in:
parent
cfb4563909
commit
9f80071b1c
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue