Skip to content

Commit

Permalink
remove submit transformer check for has items (#33532)
Browse files Browse the repository at this point in the history
Co-authored-by: Jacob Penner <[email protected]>
  • Loading branch information
pennja and Japenner authored Dec 12, 2024
1 parent 773ad70 commit f816b41
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ import sharedTransformForSubmit from '../../shared/config/submit-transformer';
import { PREPARER_TYPES } from './constants';

export default function transformForSubmit(formConfig, form) {
const hasReceivedMedicalTreatment =
form?.data?.['view:hasReceivedMedicalTreatment'];

const transformedData = JSON.parse(
sharedTransformForSubmit(formConfig, form),
);
Expand All @@ -27,10 +24,6 @@ export default function transformForSubmit(formConfig, form) {
MEDAL_AWARD: 'medalAwardDocuments',
};

if (!hasReceivedMedicalTreatment && transformedData.medicalTreatments) {
delete transformedData.medicalTreatments;
}

// TODO: Once PDF has been updated to remove OCR-boxes,
// remove this name-values truncation-block below.
if (
Expand Down

0 comments on commit f816b41

Please sign in to comment.