mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Merge pull request #3305 from harryo/bugfix/fix_key
Fix key in SessionActivity
This commit is contained in:
commit
501d7aba5f
1 changed files with 3 additions and 3 deletions
|
|
@ -27,16 +27,16 @@ export function SessionActivity({
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={styles.timeline}>
|
<div className={styles.timeline}>
|
||||||
{data.map(({ eventId, createdAt, urlPath, eventName, visitId }) => {
|
{data.map(({ id, createdAt, urlPath, eventName, visitId }) => {
|
||||||
const showHeader = !lastDay || !isSameDay(new Date(lastDay), new Date(createdAt));
|
const showHeader = !lastDay || !isSameDay(new Date(lastDay), new Date(createdAt));
|
||||||
lastDay = createdAt;
|
lastDay = createdAt;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment key={eventId}>
|
<Fragment key={id}>
|
||||||
{showHeader && (
|
{showHeader && (
|
||||||
<div className={styles.header}>{formatTimezoneDate(createdAt, 'PPPP')}</div>
|
<div className={styles.header}>{formatTimezoneDate(createdAt, 'PPPP')}</div>
|
||||||
)}
|
)}
|
||||||
<div key={eventId} className={styles.row}>
|
<div className={styles.row}>
|
||||||
<div className={styles.time}>
|
<div className={styles.time}>
|
||||||
<StatusLight color={`#${visitId?.substring(0, 6)}`}>
|
<StatusLight color={`#${visitId?.substring(0, 6)}`}>
|
||||||
{formatTimezoneDate(createdAt, 'pp')}
|
{formatTimezoneDate(createdAt, 'pp')}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue