Skip to content

Commit

Permalink
fix: imports after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
QRuhier committed Dec 2, 2024
1 parent 3ad9d3a commit b7adab6
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,13 @@ import { connect } from 'react-redux';
import { Field, FormSection, change, formValueSelector } from 'redux-form';

import { DATATYPE_NAME } from '../../../../../constants/pogues-constants';
import { RichEditorWithVariable } from '../../../../../forms/controls/control-with-suggestions';
import GenericOption from '../../../../../forms/controls/generic-option';
import Input from '../../../../../forms/controls/input';
import Select from '../../../../../forms/controls/select';
import ListRadios from '../../../../../forms/controls/list-radios';
import withCurrentFormVariables from '../../../../../hoc/with-current-form-variables';
import SelectMetaDataContainer from '../../../../../layout/connected-widget/select-metadata';
import { connect } from 'react-redux';
import withCurrentFormVariables from '../../../../../hoc/with-current-form-variables';
import GenericOption from '../../../../../forms/controls/generic-option';
import ListRadios from '../../../../../forms/controls/list-radios';
import { RichEditorWithVariable } from '../../../../../forms/controls/control-with-suggestions';
import Dictionary from '../../../../../utils/dictionary/dictionary';

const { NUMERIC } = DATATYPE_NAME;

Expand Down Expand Up @@ -70,9 +67,9 @@ function ResponseFormatDatatypeNumeric({
onChange={handleDynamicUnitChange}
required
// Convert string "true"/"false" to boolean true/false when storing in Redux form
parse={value => value === 'true'}
parse={(value) => value === 'true'}
// Convert true/false/undefined to string "true"/"false" when displaying the form
format={value => (value === true ? 'true' : 'false')}
format={(value) => (value === true ? 'true' : 'false')}
>
<GenericOption value="true">{Dictionary.yes}</GenericOption>
<GenericOption value="false">{Dictionary.no}</GenericOption>
Expand Down

0 comments on commit b7adab6

Please sign in to comment.