Skip to content

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

Add guard in InviteMemberModal https://sentry.io/organizations/supabase/issues/2885573028/

Joshen Limbb085de0c1c1
diff --git a/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.js b/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.js
index 5e71afabb49..5aeda705f6f 100644
--- a/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.js
+++ b/studio/components/to-be-cleaned/ModalsDeprecated/InviteMemberModal.js
@@ -140,7 +140,7 @@ const InputSearchWithResults = observer(({ className }) => {
}
setLoading(true)
const response = await post(`${API_URL}/profile/search`, { keywords: PageState.keywords })
- if (response.error) {
+ if (response?.error) {
ui.setNotification({
category: 'error',
message: `Failed to search profile: ${response.error.message}`,