From ac37c5d2f65f712f308866c404a7e93180f90513 Mon Sep 17 00:00:00 2001 From: Kira Miller Date: Tue, 19 Mar 2024 21:50:51 +0000 Subject: [PATCH] fix: formdata email parsing error fix --- src/components/ReportingConfig/EmailDeliveryMethodForm.jsx | 2 ++ src/components/ReportingConfig/ReportingConfigForm.jsx | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/components/ReportingConfig/EmailDeliveryMethodForm.jsx b/src/components/ReportingConfig/EmailDeliveryMethodForm.jsx index 0a0e2f9199..8d77f88d5b 100644 --- a/src/components/ReportingConfig/EmailDeliveryMethodForm.jsx +++ b/src/components/ReportingConfig/EmailDeliveryMethodForm.jsx @@ -13,6 +13,7 @@ const EmailDeliveryMethodForm = ({ invalidFields, config, handleBlur }) => { Email(s) handleBlur(e, () => { @@ -47,6 +48,7 @@ const EmailDeliveryMethodForm = ({ invalidFields, config, handleBlur }) => { Password handleBlur(e)} data-hj-suppress diff --git a/src/components/ReportingConfig/ReportingConfigForm.jsx b/src/components/ReportingConfig/ReportingConfigForm.jsx index 413308f1dc..69596cb1d9 100644 --- a/src/components/ReportingConfig/ReportingConfigForm.jsx +++ b/src/components/ReportingConfig/ReportingConfigForm.jsx @@ -124,6 +124,8 @@ class ReportingConfigForm extends React.Component { handleSubmit = async (formData, config) => { await this.setState({ submitState: SUBMIT_STATES.PENDING }); let requiredFields = []; + formData.append('active', this.state.active); + formData.append('enableCompression', this.state.enableCompression); if (formData.get('deliveryMethod') === 'email') { requiredFields = config ? [...REQUIRED_EMAIL_FIELDS] : [...REQUIRED_NEW_EMAIL_FIELDS]; // transform email field to match what the api is looking for @@ -343,6 +345,7 @@ class ReportingConfigForm extends React.Component { helpText: 'The hour of the day to send the report, in Eastern Standard Time (EST). This is required for all frequency settings', invalidMessage: 'Required for all frequency types', isInvalid: invalidFields.hourOfDay, + min: 0, label: 'Hour of Day', })}