The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix authorize page, default approved at to null
Joshen Limf44eae694fa2
diff --git a/studio/pages/authorize.tsx b/studio/pages/authorize.tsxindex e0cd2f02f89..a6b134030f6 100644--- a/studio/pages/authorize.tsx+++ b/studio/pages/authorize.tsx@@ -26,7 +26,7 @@ const APIAuthorizationPage: NextPageWithLayout = () => {const { data: organizations, isLoading: isLoadingOrganizations } = useOrganizationsQuery()const { data: requester, isLoading, isError, error } = useApiAuthorizationQuery({ id: auth_id })- const isApproved = requester?.approved_at !== null+ const isApproved = (requester?.approved_at ?? null) !== nullconst isExpired = dayjs().isAfter(dayjs(requester?.expires_at))const { mutate: approveRequest, isLoading: isApproving } = useApiAuthorizationApproveMutation({