Skip to content

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

Only send library in support form if category is problem

Joshen Limb03b780eb035
diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsx
index fe868a8e7c1..437e1ee771d 100644
--- a/studio/components/interfaces/Support/SupportForm.tsx
+++ b/studio/components/interfaces/Support/SupportForm.tsx
@@ -142,7 +142,8 @@ const SupportForm: FC<Props> = ({ setSentCategory }) => {
const payload = {
...values,
- library: selectedLibrary !== undefined ? selectedLibrary.key : '',
+ library:
+ values.category === 'Problem' && selectedLibrary !== undefined ? selectedLibrary.key : '',
message: formatMessage(values.message, attachments),
verified: true,
tags: ['dashboard-support-form'],