mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 09:45:04 +01:00
Fixed country names lookup.
This commit is contained in:
parent
07c92ff9b5
commit
53b23420a4
@ -3,7 +3,7 @@ import FilterButtons from 'components/common/FilterButtons';
|
|||||||
import MetricsTable from './MetricsTable';
|
import MetricsTable from './MetricsTable';
|
||||||
import useMessages from 'hooks/useMessages';
|
import useMessages from 'hooks/useMessages';
|
||||||
import usePageQuery from 'hooks/usePageQuery';
|
import usePageQuery from 'hooks/usePageQuery';
|
||||||
import { emptyFilter } from '../../lib/filters';
|
import { emptyFilter } from 'lib/filters';
|
||||||
|
|
||||||
export default function PagesTable({ websiteId, showFilters, ...props }) {
|
export default function PagesTable({ websiteId, showFilters, ...props }) {
|
||||||
const {
|
const {
|
||||||
|
@ -12,7 +12,7 @@ export default function useCountryNames(locale) {
|
|||||||
const { basePath } = useRouter();
|
const { basePath } = useRouter();
|
||||||
|
|
||||||
async function loadData(locale) {
|
async function loadData(locale) {
|
||||||
const data = await get(`${basePath}/intl/country/${locale}.json`);
|
const { data } = await get(`${basePath}/intl/country/${locale}.json`);
|
||||||
|
|
||||||
if (data) {
|
if (data) {
|
||||||
countryNames[locale] = data;
|
countryNames[locale] = data;
|
||||||
|
Loading…
Reference in New Issue
Block a user