mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 12:47:13 +01:00
Fixed region rendering.
This commit is contained in:
parent
befafaf1ee
commit
0fdc8f7922
1 changed files with 3 additions and 1 deletions
|
|
@ -14,7 +14,9 @@ export function RegionsTable({ websiteId, ...props }) {
|
|||
const { basePath } = useRouter();
|
||||
|
||||
const renderLabel = x => {
|
||||
return regions[x] ? `${regions[x]}, ${countryNames[x.split('-')[0]]}` : x;
|
||||
const [country, ...codes] = x.split('-');
|
||||
const region = codes.join('-');
|
||||
return regions[region] ? `${regions[region]}, ${countryNames[country]}` : x;
|
||||
};
|
||||
|
||||
const renderLink = ({ x: code }) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue