Skip to content

Commit

Permalink
fix(protocol-designer): heater shaker timer field is a boolean instea… (
Browse files Browse the repository at this point in the history
#17119)

…d of boolean string

closes RQA-3794
  • Loading branch information
jerader authored Dec 16, 2024
1 parent 714a366 commit 4446eaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ export function ToggleExpandStepFormField(
resetFieldValue()
}
} else if (toggleValue == null) {
toggleUpdateValue(
name === 'targetTemperature' || name === 'heaterShakerTimer'
? 'true'
: true
)
toggleUpdateValue(name === 'targetTemperature' ? 'true' : true)
} else {
toggleUpdateValue(!toggleValue)
if (toggleValue) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export function HeaterShakerTools(props: StepFormProps): JSX.Element {
'form:step_edit_form.field.heaterShaker.timer.heaterShakerSetTimer'
)}
fieldTitle={t('form:step_edit_form.field.heaterShaker.duration')}
isSelected={formData.heaterShakerSetTimer === 'true'}
isSelected={formData.heaterShakerSetTimer === true}
units={t('application:units.time')}
toggleElement="checkbox"
formLevelError={getFormLevelError(
Expand Down

0 comments on commit 4446eaf

Please sign in to comment.