Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fixed array conversion for UTM report.
Mike Cao96af798d4242
diff --git a/package.json b/package.jsonindex 9cea8cbe8..79788bcd6 100644--- a/package.json+++ b/package.json@@ -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. <[email protected]>","license": "MIT",diff --git a/src/app/(main)/reports/utm/UTMView.tsx b/src/app/(main)/reports/utm/UTMView.tsxindex 48fb6497d..d44e9882e 100644--- a/src/app/(main)/reports/utm/UTMView.tsx+++ b/src/app/(main)/reports/utm/UTMView.tsx@@ -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] };