mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
Fixed map issue.
This commit is contained in:
parent
2890cb4419
commit
b183fc1600
@ -27,7 +27,7 @@ function WorldMap({ data, className }) {
|
|||||||
);
|
);
|
||||||
const { locale } = useLocale();
|
const { locale } = useLocale();
|
||||||
const countryNames = useCountryNames(locale);
|
const countryNames = useCountryNames(locale);
|
||||||
const metrics = useMemo(() => percentFilter(data), [data]);
|
const metrics = useMemo(() => (data ? percentFilter(data) : []), [data]);
|
||||||
|
|
||||||
function getFillColor(code) {
|
function getFillColor(code) {
|
||||||
if (code === 'AQ') return;
|
if (code === 'AQ') return;
|
||||||
|
Loading…
Reference in New Issue
Block a user