From 9fd4f6743903b297c4d149d723075f2991db2f97 Mon Sep 17 00:00:00 2001 From: Viktor van Wijk Date: Thu, 2 Jan 2025 17:08:40 +0100 Subject: [PATCH] :bug: [#4908] Add initial form data formData will be an empty object if we add a new object, which means the default values for the configuration fields are missing --- .../registrations/json_dump/JSONDumpOptionsForm.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/openforms/js/components/admin/form_design/registrations/json_dump/JSONDumpOptionsForm.js b/src/openforms/js/components/admin/form_design/registrations/json_dump/JSONDumpOptionsForm.js index fa17111b77..7f3f731060 100644 --- a/src/openforms/js/components/admin/form_design/registrations/json_dump/JSONDumpOptionsForm.js +++ b/src/openforms/js/components/admin/form_design/registrations/json_dump/JSONDumpOptionsForm.js @@ -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" >