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' })}>
|
<DMSubMenu label={intl.formatMessage({ id: 'language' })}>
|
||||||
{languages.map((language) => (
|
{languages.map((language) => (
|
||||||
<DMCheckboxItem
|
<DMCheckboxItem
|
||||||
|
key={language.code}
|
||||||
checked={setting.language === language.code}
|
checked={setting.language === language.code}
|
||||||
onCheckedChange={() => handleChangeLanguage(language.code)}
|
onCheckedChange={() => handleChangeLanguage(language.code)}
|
||||||
id={`TD-MenuItem-Language-${language}`}
|
id={`TD-MenuItem-Language-${language}`}
|
||||||
|
|
Loading…
Reference in a new issue