mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Fixed country names lookup.
This commit is contained in:
parent
07c92ff9b5
commit
53b23420a4
2 changed files with 2 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ export default function useCountryNames(locale) {
|
|||
const { basePath } = useRouter();
|
||||
|
||||
async function loadData(locale) {
|
||||
const data = await get(`${basePath}/intl/country/${locale}.json`);
|
||||
const { data } = await get(`${basePath}/intl/country/${locale}.json`);
|
||||
|
||||
if (data) {
|
||||
countryNames[locale] = data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue