Skip to content

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

Fix the support form.

Ivan Vasilovc68f2ba0a566
diff --git a/studio/components/interfaces/Support/SupportForm.tsx b/studio/components/interfaces/Support/SupportForm.tsx
index 614b49cd147..2b34c0d912f 100644
--- a/studio/components/interfaces/Support/SupportForm.tsx
+++ b/studio/components/interfaces/Support/SupportForm.tsx
@@ -278,10 +278,10 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {
useEffect(() => {
if (isReady) {
const updatedValues = {
- projectRef: ref,
- subject,
- category: selectedCategoryFromUrl?.value,
- message,
+ projectRef: ref ?? initialValues.projectRef,
+ subject: subject ?? initialValues.subject,
+ category: selectedCategoryFromUrl?.value ?? initialValues.category,
+ message: message ?? initialValues.message,
}
resetForm({ values: updatedValues, initialValues: updatedValues })
}