Skip to content

Commit

Permalink
When user selects CNV operator the MTV operator is also selected (ope…
Browse files Browse the repository at this point in the history
  • Loading branch information
ammont82 committed Feb 27, 2025
1 parent cfd5be2 commit 589f313
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ const CnvCheckbox = ({
}) => {
const { setFieldValue } = useFormikContext<OperatorsValues>();
const fieldId = getFieldId(CNV_FIELD_NAME, 'input');
const selectLsoOperator = (checked: boolean) => {
const selectOperatorsNeeded = (checked: boolean) => {
setFieldValue('useLso', checked);
setFieldValue('useMigrationToolkitforVirtualization', checked);
};
return (
<FormGroup isInline fieldId={fieldId}>
Expand All @@ -92,7 +93,7 @@ const CnvCheckbox = ({
}
helperText={<CnvHelperText />}
isDisabled={!!disabledReason}
onChange={selectLsoOperator}
onChange={selectOperatorsNeeded}
/>
</FormGroup>
);
Expand Down

0 comments on commit 589f313

Please sign in to comment.