mirror of
https://github.com/kremalicious/umami.git
synced 2024-06-28 00:37:51 +02:00
Revert regions rendering due to bad data.
This commit is contained in:
parent
8e373f7444
commit
c22fefaa2d
|
@ -14,9 +14,7 @@ export function RegionsTable({ websiteId, ...props }) {
|
|||
const { basePath } = useRouter();
|
||||
|
||||
const renderLabel = x => {
|
||||
const [country, ...codes] = x.split('-');
|
||||
const region = codes.join('-');
|
||||
return regions[region] ? `${regions[region]}, ${countryNames[country]}` : x;
|
||||
return regions[x] ? `${regions[x]}, ${countryNames[x.split('-')[0]]}` : x;
|
||||
};
|
||||
|
||||
const renderLink = ({ x: code }) => {
|
||||
|
|
Loading…
Reference in New Issue
Block a user