Skip to content

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

Add number of results beside results button in sql editor

Joshen Limb4b43e4f0c8d
diff --git a/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx b/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx
index 28d3bb324a6..ae49be8872d 100644
--- a/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx
+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/ResultsDropdown.tsx
@@ -110,7 +110,9 @@ const ResultsDropdown = ({ id }: ResultsDropdownProps) => {
}
>
<Button asChild type="text" iconRight={<IconChevronDown />}>
- <span>Results</span>
+ <span>
+ Results {result && result.rows.length > 0 && `(${result.rows.length.toLocaleString()})`}
+ </span>
</Button>
<CSVLink
ref={csvRef}