The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fix: format support form submission as plain text
dshukertjra3a7fdb64c01
diff --git a/studio/components/interfaces/Support/SupportForm.utils.ts b/studio/components/interfaces/Support/SupportForm.utils.tsindex 6202a9855f5..3bbb04fb8b0 100644--- a/studio/components/interfaces/Support/SupportForm.utils.ts+++ b/studio/components/interfaces/Support/SupportForm.utils.ts@@ -57,15 +57,10 @@ export const uploadAttachments = async (ref: string, files: File[]) => {}export const formatMessage = (message: string, attachments: string[]) => {- const formattedMessage = message.replace(/\n/g, '<br/>')if (attachments.length > 0) {- const attachmentsImg = attachments.map(- (url) => `<img src=${url} width="200" style="margin-right:10px" />`- )- return `${formattedMessage}<br/><hr/><b>Uploaded attachments:</b><br/><div style="display:flex;align-items:center">${attachmentsImg.join(- ''- )}</div>`+ const attachmentsImg = attachments.map((url) => `\n${url}`)+ return `${message}\n${attachmentsImg.join('')}`} else {- return formattedMessage+ return message}}