Skip to content

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

ref: Remove redundant oauth apps icon workaround (#34471)

Kamil Ogórek034435234f11
diff --git a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
index 560ad3e127d..984c74018f6 100644
--- a/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
+++ b/apps/studio/components/interfaces/Organization/OAuthApps/PublishAppSidePanel/index.tsx
@@ -166,7 +166,7 @@ const PublishAppSidePanel = ({
website,
redirect_uris,
scopes,
- icon: uploadedIconUrl === undefined ? null : uploadedIconUrl,
+ icon: uploadedIconUrl,
})
}
}
diff --git a/apps/studio/data/oauth/oauth-app-update-mutation.ts b/apps/studio/data/oauth/oauth-app-update-mutation.ts
index 61a3987284d..0978f6f8b82 100644
--- a/apps/studio/data/oauth/oauth-app-update-mutation.ts
+++ b/apps/studio/data/oauth/oauth-app-update-mutation.ts
@@ -11,7 +11,7 @@ export type OAuthAppUpdateVariables = {
slug: string
name: string
website: string
- icon?: string | null
+ icon?: string
scopes?: OAuthScope[]
redirect_uris: string[]
}
@@ -36,7 +36,7 @@ export async function updateOAuthApp({
body: {
name,
website,
- icon: icon as undefined, // Generated type is incorrect an allows for `string | undefined` only, while we need `null` here.
+ icon,
scopes,
redirect_uris,
},