mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Fixed map issue.
This commit is contained in:
parent
2890cb4419
commit
b183fc1600
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ function WorldMap({ data, className }) {
|
|||
);
|
||||
const { locale } = useLocale();
|
||||
const countryNames = useCountryNames(locale);
|
||||
const metrics = useMemo(() => percentFilter(data), [data]);
|
||||
const metrics = useMemo(() => (data ? percentFilter(data) : []), [data]);
|
||||
|
||||
function getFillColor(code) {
|
||||
if (code === 'AQ') return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue