Skip to content

Commit

Permalink
Merge pull request #5021 from open-formulieren/hotfix/broken-objects-…
Browse files Browse the repository at this point in the history
…api-variable-mappings

Fix broken objects api variable mappings
  • Loading branch information
sergei-maertens authored Jan 21, 2025
2 parents 7e40156 + 0a48c48 commit 1717537
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const SubmissionLimitFields = ({submissionLimit, formUuid, onChange}) =>
};

SubmissionLimitFields.propTypes = {
submissionLimit: PropTypes.number.isRequired,
submissionLimit: PropTypes.number,
formUuid: PropTypes.string.isRequired,
onChange: PropTypes.func.isRequired,
};
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const ObjectsApiOptionsForm = ({index, name, label, schema, formData, onChange})
/>
}
initialFormData={{
version: 2, // default to version 2, existing form data can override this
variablesMapping: [],
...formData,
// Ensure that if there's only one option, it is automatically selected.
objectsApiGroup: formData.objectsApiGroup ?? defaultGroup,
Expand Down

0 comments on commit 1717537

Please sign in to comment.