Skip to content

Commit

Permalink
Fixed mark as default
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Jun 11, 2021
1 parent 83df049 commit 472d985
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ui/src/app/metadata/wizard/MetadataWizardForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,17 @@ export function MetadataWizardForm ({ metadata, definition, schema, current, onC
const transformErrors = (errors) => {
return errors.filter(e => invisErrors.indexOf(e.name) === -1);
}

const onFormChange = (form) => {
onChange(definition.bindings ? { ...form, formData: definition.bindings(data, form.formData) } : form);
};

return (
<>
<div className="container-fluid">
<Form formData={data}
noHtml5Validate={true}
onChange={(form) => onChange(form)}
onChange={(form) => onFormChange(form)}
onSubmit={() => onSubmit()}
onBlur={() => onBlur(data)}
schema={schema}
Expand Down

0 comments on commit 472d985

Please sign in to comment.