The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix organization card link (#36473)
Joshen Lim21e93fc64916
diff --git a/apps/studio/components/interfaces/Organization/OrgNotFound.tsx b/apps/studio/components/interfaces/Organization/OrgNotFound.tsxindex 7aa32415552..673c8e116c0 100644--- a/apps/studio/components/interfaces/Organization/OrgNotFound.tsx+++ b/apps/studio/components/interfaces/Organization/OrgNotFound.tsx@@ -41,7 +41,9 @@ export const OrgNotFound = ({ slug }: { slug?: string }) => {<AlertError error={organizationsError} subject="Failed to load organizations" />)}{isOrganizationsSuccess &&- organizations?.map((org) => <OrganizationCard key={org.slug} organization={org} />)}+ organizations?.map((org) => (+ <OrganizationCard key={org.slug} organization={org} href={`/new/${org.slug}`} />+ ))}</div></>)diff --git a/apps/studio/components/interfaces/Organization/OrganizationCard.tsx b/apps/studio/components/interfaces/Organization/OrganizationCard.tsxindex ba0e439cee6..dad92b5c257 100644--- a/apps/studio/components/interfaces/Organization/OrganizationCard.tsx+++ b/apps/studio/components/interfaces/Organization/OrganizationCard.tsx@@ -5,12 +5,18 @@ import { ActionCard } from 'components/ui/ActionCard'import { useProjectsQuery } from 'data/projects/projects-query'import { Organization } from 'types'-export const OrganizationCard = ({ organization }: { organization: Organization }) => {+export const OrganizationCard = ({+ organization,+ href,+}: {+ organization: Organization+ href?: string+}) => {const { data: allProjects = [] } = useProjectsQuery()const numProjects = allProjects.filter((x) => x.organization_slug === organization.slug).lengthreturn (- <Link href={`/new/${organization.slug}`}>+ <Link href={href ?? `/org/${organization.slug}`}><ActionCardbgColor="bg border"className="[&>div]:items-center"