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