mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Revert regions rendering due to bad data.
This commit is contained in:
parent
8e373f7444
commit
c22fefaa2d
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue