mirror of
https://github.com/strapi/strapi.git
synced 2025-09-16 03:48:22 +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();
|
onToggle();
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
const hasMultipleLocales = locales.length > 1;
|
||||||
|
|
||||||
|
return hasMultipleLocales ? (
|
||||||
<Padded left right>
|
<Padded left right>
|
||||||
<List>
|
<List>
|
||||||
{locales.map(locale => {
|
{locales.map(locale => {
|
||||||
@ -102,7 +104,7 @@ const LocalePicker = () => {
|
|||||||
})}
|
})}
|
||||||
</List>
|
</List>
|
||||||
</Padded>
|
</Padded>
|
||||||
);
|
) : null;
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user