Skip to content

Commit

Permalink
Merge pull request #32278 from bernhardoj/fix/31848-form-initial-draft
Browse files Browse the repository at this point in the history
Fix beneficial owner form is not shown after revisiting the page
  • Loading branch information
tylerkaraszewski authored Dec 11, 2023
2 parents 71ce19d + 3c15b06 commit 7cfa027
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Form/FormProvider.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function getInitialValueByType(valueType) {
function FormProvider({validate, formID, shouldValidateOnBlur, shouldValidateOnChange, children, formState, network, enabledWhenOffline, draftValues, onSubmit, ...rest}) {
const inputRefs = useRef({});
const touchedInputs = useRef({});
const [inputValues, setInputValues] = useState({});
const [inputValues, setInputValues] = useState(() => ({...draftValues}));
const [errors, setErrors] = useState({});
const hasServerError = useMemo(() => Boolean(formState) && !_.isEmpty(formState.errors), [formState]);

Expand Down

0 comments on commit 7cfa027

Please sign in to comment.