The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Update error check in InviteMemberModal (https://sentry.io/organizations/supabase/issues/2917926449)
Joshen Lima817560ef070
diff --git a/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.js b/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.jsindex d7a763b07ea..3658d226002 100644--- a/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.js+++ b/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.js@@ -1,5 +1,5 @@import { createContext, useContext, useCallback, useState, useEffect } from 'react'-import { debounce, isUndefined } from 'lodash'+import { debounce, isNil } from 'lodash'import { observer, useLocalObservable } from 'mobx-react-lite'import { post } from 'lib/common/fetch'import { Button, IconKey, IconLoader, IconUser, IconX, Input, Typography } from '@supabase/ui'@@ -70,7 +70,7 @@ function InviteMemberModal({ organization, members = [] }) {org_id: orgId,user_id: PageState.selectedProfile.id,})- if (isUndefined(response)) {+ if (isNil(response)) {ui.setNotification({ category: 'error', message: 'Failed to add member' })} else if (response?.error) {ui.setNotification({@@ -141,7 +141,7 @@ const InputSearchWithResults = observer(({ className }) => {}setLoading(true)const response = await post(`${API_URL}/profile/search`, { keywords: PageState.keywords })- if (isUndefined(response)) {+ if (isNil(response)) {ui.setNotification({ category: 'error', message: 'Failed to search profile' })} else if (response.error) {ui.setNotification({