mirror of
https://github.com/supabase/supabase.git
synced 2026-10-10 11:55:05 +03:00
Merge pull request #17049 from supabase/hotfix/support-form-initial-state-props
Add all initial values to reset
This commit is contained in:
1 file changed
+4
@@ -282,6 +282,10 @@ const SupportForm = ({ setSentCategory }: SupportFormProps) => {
|
||||
subject: subject ?? initialValues.subject,
|
||||
category: selectedCategoryFromUrl?.value ?? initialValues.category,
|
||||
message: message ?? initialValues.message,
|
||||
severity: initialValues.severity,
|
||||
allowSupportAccess: false,
|
||||
library: 'no-library',
|
||||
organizationSlug: selectedOrganizationSlug,
|
||||
}
|
||||
resetForm({ values: updatedValues, initialValues: updatedValues })
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user