Skip to content

Commit

Permalink
Merge branch 'chore_release-pd-8.2.1' into edge
Browse files Browse the repository at this point in the history
  • Loading branch information
jerader committed Dec 12, 2024
2 parents 0713563 + 187ba1a commit a853e5d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { useEffect } from 'react'
import { useSelector } from 'react-redux'
import { useTranslation } from 'react-i18next'
import {
Expand Down Expand Up @@ -137,13 +136,6 @@ export function MoveLiquidTools(props: StepFormProps): JSX.Element {

const mappedErrorsToField = getFormErrorsMappedToField(visibleFormErrors)

// auto-collapse blowout field if disposal volume is checked
useEffect(() => {
if (formData.disposalVolume_checkbox) {
propsForFields.blowout_checkbox.updateValue(false)
}
}, [formData.disposalVolume_checkbox])

return toolboxStep === 0 ? (
<Flex
flexDirection={DIRECTION_COLUMN}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ const updatePatchDisposalVolumeFields = (
...patch,
disposalVolume_checkbox: true,
disposalVolume_volume: recommendedMinimumDisposalVol,
blowout_checkbox: false,
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ describe('disposal volume should update...', () => {
dispense_mix_checkbox: false,
dispense_mix_times: null,
dispense_mix_volume: null,
blowout_checkbox: false,
})
})

Expand Down

0 comments on commit a853e5d

Please sign in to comment.