Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Use the latest value for the chart heading instead of the average number

Terry Suttonc37ee44d4bde
diff --git a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx b/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
index cf8798a2588..834a6a972d8 100644
--- a/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
+++ b/studio/components/to-be-cleaned/Charts/ChartHandler.tsx
@@ -128,7 +128,7 @@ const ChartHandler: FC<Props> = ({
? chartData?.total
: provider === 'log-stats'
? chartData?.totalGrouped?.[attribute]
- : chartData?.totalAverage
+ : chartData?.data[chartData?.data.length -1]?.[attribute]
if (loading) {
return (