mirror of
https://github.com/umami-software/umami.git
synced 2026-02-21 21:15:35 +01:00
Fixed session weekly rendering bug.
This commit is contained in:
parent
e853ed7ae9
commit
ceacc25021
2 changed files with 6 additions and 3 deletions
|
|
@ -34,7 +34,7 @@ export function SessionsWeekly({ websiteId }: { websiteId: string }) {
|
|||
|
||||
return (
|
||||
<LoadingPanel {...(props as any)} data={data}>
|
||||
<div className={styles.week}>
|
||||
<div key={data} className={styles.week}>
|
||||
<div className={styles.day}>
|
||||
<div className={styles.header}> </div>
|
||||
{Array(24)
|
||||
|
|
@ -50,7 +50,7 @@ export function SessionsWeekly({ websiteId }: { websiteId: string }) {
|
|||
</div>
|
||||
{data?.map((day: number[], index: number) => {
|
||||
return (
|
||||
<div className={styles.day} key={index}>
|
||||
<div key={index} className={styles.day}>
|
||||
<div className={styles.header}>
|
||||
{format(getDayOfWeekAsDate(index), 'EEE', { locale: dateLocale })}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue