Skip to content

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

Merge branch 'master' into chore/add-error-handling-for-permissions

Joshen Limb7a251ffee90
diff --cc studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx
index 8a5349d4f10,892aa1d1495..6d5a99c57e1
--- a/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx
+++ b/studio/components/interfaces/SQLEditor/UtilityPanel/Results.tsx
@@@ -67,19 -67,14 +67,22 @@@ const Results = ({ id, rows }: { id: st
setCellPosition(position)
}
- const [mounted, setMounted] = useState(false)
- useEffect(() => {
- if (!mounted) setMounted(true)
- }, [])
+ if (rows.length <= 0) {
+ return (
+ <div className="bg-table-header-light dark:bg-table-header-dark">
+ <p className="m-0 border-0 px-6 py-4 font-mono text-sm">Success. No rows returned</p>
+ </div>
+ )
+ }
+ if (rows.length <= 0) {
+ return (
+ <div className="bg-table-header-light dark:bg-table-header-dark">
+ <p className="m-0 border-0 px-6 py-4 font-mono text-sm">Success. No rows returned</p>
+ </div>
+ )
+ }
+
return (
<>
<DataGrid