mirror of
https://github.com/Alamantus/Lexiconga.git
synced 2025-03-22 19:38:55 +01:00
Making a more unique React key for words did indeed make open edit forms correctly go away when switching dictionaries.
This commit is contained in:
parent
c6605b46fc
commit
e20395b642
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ export class Dictionary extends React.Component {
|
|||
|
||||
showWords() {
|
||||
let words = this.props.words.map((word) => {
|
||||
return <Word key={'dictionaryEntry' + word.wordId.toString()} isEditing={true}
|
||||
return <Word key={'d:' + this.props.details.name + this.props.details.externalID.toString() + 'w:' + word.wordId.toString()} isEditing={true}
|
||||
name={word.name}
|
||||
pronunciation={word.pronunciation}
|
||||
partOfSpeech={word.partOfSpeech}
|
||||
|
|
Loading…
Add table
Reference in a new issue