From 96af798d4242f7222db609e7be3e2f6534b1d07f Mon Sep 17 00:00:00 2001 From: Mike Cao Date: Wed, 20 Mar 2024 17:43:48 -0700 Subject: [PATCH] Fixed array conversion for UTM report. --- package.json | 2 +- src/app/(main)/reports/utm/UTMView.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 9cea8cbe..79788bcd 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. ", "license": "MIT", diff --git a/src/app/(main)/reports/utm/UTMView.tsx b/src/app/(main)/reports/utm/UTMView.tsx index 48fb6497..d44e9882 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] };