Skip to content

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

Cleanup

Terry Sutton03f962cfe596
diff --git a/studio/pages/join/index.tsx b/studio/pages/join/index.tsx
index 7704bb2cddb..b9281bd5b6d 100644
--- a/studio/pages/join/index.tsx
+++ b/studio/pages/join/index.tsx
@@ -39,7 +39,6 @@ const JoinOrganizationPage = () => {
await ui.load()
const response = await get(`${API_URL}/organizations/${slug}/members/join?token=${token}`)
- console.log({ response })
if (response.error) {
setError(response.error)
@@ -73,7 +72,7 @@ const JoinOrganizationPage = () => {
setIsSubmitting(false)
} else {
setIsSubmitting(false)
- app.onOrgJoined(response)
+ app.onOrgAdded(response)
router.push('/')
}
}
@@ -110,7 +109,6 @@ const JoinOrganizationPage = () => {
isError ? 'text-scale-1100' : 'text-scale-1200',
].join(' ')}
>
- {/* <IconAlertCircle size={21} strokeWidth={1.5} /> */}
<>{children}</>
</div>
)
@@ -249,17 +247,12 @@ const JoinOrganizationPage = () => {
</Link>
<div
className="
- bg-scale-100 bg-scale-300 border-scale-400 mx-auto overflow-hidden
+ bg-scale-100 border-scale-400 mx-auto overflow-hidden
rounded-md border text-center shadow
md:w-[400px]
"
>
- <Loading
- active={
- // true
- !tokenInfoLoaded
- }
- >
+ <Loading active={!tokenInfoLoaded}>
<Content />
</Loading>
</div>
diff --git a/studio/stores/app/AppStore.ts b/studio/stores/app/AppStore.ts
index a8e774b8592..e66507d00af 100644
--- a/studio/stores/app/AppStore.ts
+++ b/studio/stores/app/AppStore.ts
@@ -18,7 +18,6 @@ export interface IAppStore {
onProjectStatusUpdated: (projectId: number, value: string) => void
onProjectPostgrestStatusUpdated: (projectId: number, value: 'OFFLINE' | 'ONLINE') => void
onOrgAdded: (org: any) => void
- onOrgJoined: (org: any) => void
onOrgUpdated: (org: any) => void
onOrgDeleted: (org: any) => void
}
@@ -105,12 +104,6 @@ export default class AppStore implements IAppStore {
}
}
- onOrgJoined(org: Organization) {
- if (org && org.id) {
- this.organizations.data[org.id] = org
- }
- }
-
onOrgDeleted(org: Organization) {
if (org && org.id) {
const projects = values(this.projects.data)