Skip to content

Commit

Permalink
🐛 [#4908] Add initial form data
Browse files Browse the repository at this point in the history
formData will be an empty object if we add a new object, which means the default values for the configuration fields are missing
  • Loading branch information
viktorvanwijk committed Jan 2, 2025
1 parent 17e20e7 commit 9fd4f67
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,12 @@ const JSONDumpOptionsForm = ({name, label, schema, formData, onChange}) => {
defaultMessage="Plugin configuration: JSON"
/>
}
initialFormData={{...formData}}
initialFormData={{
service: null,
relativeApiEndpoint: '',
formVariables: [],
...formData
}}
onSubmit={values => onChange({formData: values})}
modalSize="medium"
>
Expand Down

0 comments on commit 9fd4f67

Please sign in to comment.