Merge pull request #17049 from supabase/hotfix/support-form-initial-state-props

Add all initial values to reset
This commit is contained in:
Terry Sutton authored and GitHub committed 2023-08-30 16:26:52 -02:30
commit 4a8dfbde22
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 })
}