diff --git a/client/src/components/InputsModal/InputRadioGroup.tsx b/client/src/components/InputsModal/InputRadioGroup.tsx index a784b38d9..f83936b91 100644 --- a/client/src/components/InputsModal/InputRadioGroup.tsx +++ b/client/src/components/InputsModal/InputRadioGroup.tsx @@ -1,4 +1,4 @@ -import React, { FC } from 'react'; +import React, { FC, useEffect } from 'react'; import { FormControl, FormControlLabel, @@ -34,6 +34,12 @@ const InputRadioGroup: FC = ({ inputsMap.get(requirement.name) || requirement.default || firstValue ); + // Set default on mounted + useEffect(() => { + inputsMap.set(requirement.name, value); + setInputsMap(new Map(inputsMap)); + }, []); + const handleChange = (event: React.ChangeEvent) => { const value = event.target.value; setValue(value);