mirror of
https://github.com/strapi/strapi.git
synced 2025-09-09 00:26:28 +00:00
Display locale code instead of name when name is not defined (#9888)
This commit is contained in:
parent
a19fbdc972
commit
1efc84a37e
@ -93,7 +93,9 @@ const LocalePicker = () => {
|
|||||||
return (
|
return (
|
||||||
<ListItem key={locale.id}>
|
<ListItem key={locale.id}>
|
||||||
<button onClick={() => handleClick(locale)} type="button">
|
<button onClick={() => handleClick(locale)} type="button">
|
||||||
<EllipsisParagraph width="200px">{locale.name}</EllipsisParagraph>
|
<EllipsisParagraph width="200px">
|
||||||
|
{locale.name || locale.code}
|
||||||
|
</EllipsisParagraph>
|
||||||
</button>
|
</button>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user