Skip to content

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

Small fix

Joshen Limbd60d6c7134f
diff --git a/studio/pages/authorize.tsx b/studio/pages/authorize.tsx
index 86559bebe6e..cc40fb28461 100644
--- a/studio/pages/authorize.tsx
+++ b/studio/pages/authorize.tsx
@@ -85,18 +85,6 @@ const APIAuthorizationPage: NextPageWithLayout = () => {
}
}
- if (isLoading) {
- return (
- <FormPanel header={<p>Authorize API access</p>}>
- <div className="w-[500px] px-8 py-6 space-y-2">
- <ShimmeringLoader />
- <ShimmeringLoader className="w-3/4" />
- <ShimmeringLoader className="w-1/2" />
- </div>
- </FormPanel>
- )
- }
-
if (auth_id === undefined) {
return (
<FormPanel header={<p>Authorization for API access</p>}>
@@ -109,6 +97,18 @@ const APIAuthorizationPage: NextPageWithLayout = () => {
)
}
+ if (isLoading) {
+ return (
+ <FormPanel header={<p>Authorize API access</p>}>
+ <div className="w-[500px] px-8 py-6 space-y-2">
+ <ShimmeringLoader />
+ <ShimmeringLoader className="w-3/4" />
+ <ShimmeringLoader className="w-1/2" />
+ </div>
+ </FormPanel>
+ )
+ }
+
if (isError) {
return (
<FormPanel header={<p>Authorize API access</p>}>