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
Fix duplicate key errors
Harry Oosterveenbdeaa9e5c667
diff --git a/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx b/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsxindex bb0225cc7..26c921e43 100644--- a/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx+++ b/src/app/(main)/websites/[websiteId]/realtime/RealtimeLog.tsx@@ -71,9 +71,10 @@ export function RealtimeLog({ data }: { data: RealtimeData }) {if (__type === TYPE_EVENT) {return formatMessage(messages.eventLog, {- event: <b>{eventName || formatMessage(labels.unknown)}</b>,+ event: <b key="b">{eventName || formatMessage(labels.unknown)}</b>,url: (<a+ key="a"href={`//${website?.domain}${url}`}className={styles.link}target="_blank"diff --git a/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.tsx b/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.tsxindex 6663a563c..283a7ea08 100644--- a/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.tsx+++ b/src/app/(main)/websites/[websiteId]/sessions/SessionsWeekly.tsx@@ -62,10 +62,10 @@ export function SessionsWeekly({ websiteId }: { websiteId: string }) {<div className={styles.header}>{format(getDayOfWeekAsDate(index), 'EEE', { locale: dateLocale })}</div>- {day?.map((hour: number) => {+ {day?.map((hour: number, j) => {const pct = hour / max;return (- <div key={hour} className={classNames(styles.cell)}>+ <div key={j} className={classNames(styles.cell)}>{hour > 0 && (<TooltipPopuplabel={`${formatMessage(labels.visitors)}: ${hour}`}