The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update SupportForm.utils
Joshen Lim672d45ef0d6f
diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsxindex 60c019d7558..8513664b5a3 100644--- a/studio/components/interfaces/Support/SupportForm.tsx+++ b/studio/components/interfaces/Support/SupportForm.tsx@@ -159,7 +159,7 @@ const SupportForm: FC<Props> = ({ setSent }) => {})} else {ui.setNotification({ category: 'success', message: 'Support request sent. Thank you!' })- // setSent(true)+ setSent(true)}}}diff --git a/studio/components/interfaces/Support/SupportForm.utils.ts b/studio/components/interfaces/Support/SupportForm.utils.tsindex 2ae42dfa9b2..6202a9855f5 100644--- a/studio/components/interfaces/Support/SupportForm.utils.ts+++ b/studio/components/interfaces/Support/SupportForm.utils.ts@@ -8,13 +8,13 @@ const supportSupabaseClient = createClient(SUPPORT_API_URL, SUPPORT_API_KEY, {auth: {persistSession: false,autoRefreshToken: false,+ // @ts-ignoremultiTab: false,detectSessionInUrl: false,localStorage: {- // @ts-ignore- getItem: (key) => {},- setItem: (key, value) => {},- removeItem: (key) => {},+ getItem: (key: string) => undefined,+ setItem: (key: string, value: string) => {},+ removeItem: (key: string) => {},},},})@@ -45,7 +45,7 @@ export const uploadAttachments = async (ref: string, files: File[]) => {return data}))- const keys = compact(uploadedFiles).map((file) => file.Key.split('/').slice(1).join('/'))+ const keys = compact(uploadedFiles).map((file) => file.path)const { data, error } = await supportSupabaseClient.storage.from('support-attachments')@@ -53,7 +53,7 @@ export const uploadAttachments = async (ref: string, files: File[]) => {if (error) {console.error('Failed to retrieve URLs for attachments', error)}- return data ? data.map((file) => file.signedURL) : []+ return data ? data.map((file) => file.signedUrl) : []}export const formatMessage = (message: string, attachments: string[]) => {