Skip to content

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

Fix stuck in loading state on /sql/new

Joshen Lim91453b53319d
diff --git a/studio/components/interfaces/SQLEditor/SQLEditor.tsx b/studio/components/interfaces/SQLEditor/SQLEditor.tsx
index f7fc061543c..54542fd9708 100644
--- a/studio/components/interfaces/SQLEditor/SQLEditor.tsx
+++ b/studio/components/interfaces/SQLEditor/SQLEditor.tsx
@@ -173,7 +173,7 @@ const SQLEditor = () => {
const snippet = id ? snap.snippets[id] : null
const snapOffset = 50
- const isLoading = !(id && ref && snap.loaded[ref])
+ const isLoading = urlId === 'new' ? false : !(id && ref && snap.loaded[ref])
const onDragEnd = useCallback(
(sizes: number[]) => {