Skip to content

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

Fix checkbox

Terry Sutton35c4226acb9b
diff --git a/studio/components/interfaces/Reports/Reports.tsx b/studio/components/interfaces/Reports/Reports.tsx
index 38470af3c10..ecf0223e60c 100644
--- a/studio/components/interfaces/Reports/Reports.tsx
+++ b/studio/components/interfaces/Reports/Reports.tsx
@@ -275,7 +275,7 @@ const Reports = () => {
return (
<Dropdown.Checkbox
key={metric.key}
- checked={config.layout?.find((x: any) => x.attribute === metric.key)}
+ checked={config.layout?.some((x: any) => x.attribute === metric.key)}
onChange={(e) => handleChartSelection({ metric, value: e })}
>
<div className="flex flex-col space-y-0">