mirror of
https://github.com/strapi/strapi.git
synced 2025-09-16 12:02:41 +00:00
Fix empty locale picker on listview (#9906)
This commit is contained in:
parent
4a020c79ac
commit
f9a263ea95
@ -82,7 +82,9 @@ const LocalePicker = () => {
|
||||
onToggle();
|
||||
};
|
||||
|
||||
return (
|
||||
const hasMultipleLocales = locales.length > 1;
|
||||
|
||||
return hasMultipleLocales ? (
|
||||
<Padded left right>
|
||||
<List>
|
||||
{locales.map(locale => {
|
||||
@ -102,7 +104,7 @@ const LocalePicker = () => {
|
||||
})}
|
||||
</List>
|
||||
</Padded>
|
||||
);
|
||||
) : null;
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user