Fixed array conversion for UTM report.

This commit is contained in:
Mike Cao 2024-03-20 17:43:48 -07:00
parent f4a9336f9d
commit 96af798d42
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "umami",
"version": "2.10.2",
"version": "2.11.0",
"description": "A simple, fast, privacy-focused alternative to Google Analytics.",
"author": "Umami Software, Inc. <hello@umami.is>",
"license": "MIT",

View File

@ -7,7 +7,7 @@ import ListTable from 'components/metrics/ListTable';
import styles from './UTMView.module.css';
import { useMessages } from 'components/hooks';
function toArray(data: { [key: string]: number }) {
function toArray(data: { [key: string]: number } = {}) {
return Object.keys(data)
.map(key => {
return { name: key, value: data[key] };