fix timestamp missing (#37242)

fix
This commit is contained in:
Jordi Enric authored and GitHub committed 2025-07-17 12:33:33 +02:00
1 parent 22f937c954
commit d8acd6752c
1 file changed
+2 -1
@@ -140,6 +140,7 @@ const CustomTooltip = ({
isActiveHoveredChart,
}: TooltipProps) => {
if (active && payload && payload.length) {
const timestamp = payload[0].payload.timestamp
const maxValueAttribute = isMaxAttribute(attributes)
const maxValueData =
maxValueAttribute && payload?.find((p: any) => p.dataKey === maxValueAttribute.attribute)
@@ -205,7 +206,7 @@ const CustomTooltip = ({
!isActiveHoveredChart && 'opacity-0'
)}
>
<p className="font-medium">{label}</p>
<p className="font-medium">{dayjs(timestamp).format(DateTimeFormats.FULL_SECONDS)}</p>
<div className="grid gap-0">
{payload
.reverse()