Skip to content

Commit

Permalink
Merge pull request #4074 from open-formulieren/issue/4069
Browse files Browse the repository at this point in the history
[#4069] Fix crash when using some registration backends
  • Loading branch information
sergei-maertens authored Mar 28, 2024
2 parents 8430ac2 + eb4c621 commit 6a4b12b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) ||
Expand Down

0 comments on commit 6a4b12b

Please sign in to comment.