fix mandatory unique key in LanguageMenu list (#722)
This commit is contained in:
parent
b5d15dff39
commit
0cfa44f4d2
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ export function LanguageMenu() {
|
|||
<DMSubMenu label={intl.formatMessage({ id: 'language' })}>
|
||||
{languages.map((language) => (
|
||||
<DMCheckboxItem
|
||||
key={language.code}
|
||||
checked={setting.language === language.code}
|
||||
onCheckedChange={() => handleChangeLanguage(language.code)}
|
||||
id={`TD-MenuItem-Language-${language}`}
|
||||
|
|
Loading…
Reference in a new issue