mirror of
https://github.com/kremalicious/umami.git
synced 2025-02-14 21:10:34 +01: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 { basePath } = useRouter();
|
||||||
|
|
||||||
const renderLabel = x => {
|
const renderLabel = x => {
|
||||||
const [country, ...codes] = x.split('-');
|
return regions[x] ? `${regions[x]}, ${countryNames[x.split('-')[0]]}` : x;
|
||||||
const region = codes.join('-');
|
|
||||||
return regions[region] ? `${regions[region]}, ${countryNames[country]}` : x;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const renderLink = ({ x: code }) => {
|
const renderLink = ({ x: code }) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user