From a553409301d14a064d34b63bff0e0418f042325d Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Thu, 28 Mar 2024 09:07:28 +0100 Subject: [PATCH 1/2] [#4069] Fix crash when using some registration backends --- .../variables/registration/RegistrationsSummaryList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openforms/js/components/admin/form_design/variables/registration/RegistrationsSummaryList.js b/src/openforms/js/components/admin/form_design/variables/registration/RegistrationsSummaryList.js index 61775d1b32..a603a921ba 100644 --- a/src/openforms/js/components/admin/form_design/variables/registration/RegistrationsSummaryList.js +++ b/src/openforms/js/components/admin/form_design/variables/registration/RegistrationsSummaryList.js @@ -130,7 +130,7 @@ const RegistrationsSummaryList = ({variable, onFieldChange, registrationBackends const backendInfo = BACKEND_OPTIONS_FORMS[backend.backend]; // Check if the registration backend can be configured from the variables tab... - const configurableFromVariables = backendInfo.configurableFromVariables; + const configurableFromVariables = backendInfo?.configurableFromVariables; if ( (typeof configurableFromVariables === 'function' && !configurableFromVariables(backend.options)) || From eb4c62166f2a3e294978039f320722015de7e69f Mon Sep 17 00:00:00 2001 From: Viicos <65306057+Viicos@users.noreply.github.com> Date: Thu, 28 Mar 2024 11:19:22 +0100 Subject: [PATCH 2/2] [#4069] Tweak storybook test --- .../admin/form_design/variables/VariablesEditor.stories.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/openforms/js/components/admin/form_design/variables/VariablesEditor.stories.js b/src/openforms/js/components/admin/form_design/variables/VariablesEditor.stories.js index 3da2e49126..72059f130b 100644 --- a/src/openforms/js/components/admin/form_design/variables/VariablesEditor.stories.js +++ b/src/openforms/js/components/admin/form_design/variables/VariablesEditor.stories.js @@ -399,6 +399,12 @@ export const WithObjectsAPIAndTestRegistrationBackends = { name: 'Example test registration', options: {}, }, + { + backend: 'stuf-zds-create-zaak', + key: 'test_zds', + name: 'Example ZDS registration', + options: {}, + }, ], registrationPluginsVariables: [ {