fix mandatory unique key in LanguageMenu list (#722)

This commit is contained in:
Jack Bauer 2022-06-16 17:36:31 +04:00 committed by GitHub
parent b5d15dff39
commit 0cfa44f4d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}`}