Skip to content

Commit d8acd67

Browse files
authored
fix timestamp missing (supabase#37242)
fix
1 parent 22f937c commit d8acd67

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/studio/components/ui/Charts/ComposedChart.utils.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const CustomTooltip = ({
140140
isActiveHoveredChart,
141141
}: TooltipProps) => {
142142
if (active && payload && payload.length) {
143+
const timestamp = payload[0].payload.timestamp
143144
const maxValueAttribute = isMaxAttribute(attributes)
144145
const maxValueData =
145146
maxValueAttribute && payload?.find((p: any) => p.dataKey === maxValueAttribute.attribute)
@@ -205,7 +206,7 @@ const CustomTooltip = ({
205206
!isActiveHoveredChart && 'opacity-0'
206207
)}
207208
>
208-
<p className="font-medium">{label}</p>
209+
<p className="font-medium">{dayjs(timestamp).format(DateTimeFormats.FULL_SECONDS)}</p>
209210
<div className="grid gap-0">
210211
{payload
211212
.reverse()

0 commit comments

Comments
 (0)