Skip to content

Commit

Permalink
🚨 Address proptype warnings in DMNActionConfig component
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-maertens committed Dec 10, 2024
1 parent 796dcc8 commit 3bc48aa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ const DMNParametersForm = () => {
loading={loading}
name="inputMapping"
directionIcon={<FAIcon icon="arrow-right-long" aria-hidden="true" />}
variableName="formVariable"
propertyChoices={dmnParams.inputs}
propertyName="dmnVariable"
propertyHeading={dmnVariableColumnLabel}
Expand All @@ -211,6 +212,7 @@ const DMNParametersForm = () => {
loading={loading}
name="outputMapping"
directionIcon={<FAIcon icon="arrow-left-long" aria-hidden="true" />}
variableName="formVariable"
propertyChoices={dmnParams.outputs}
propertyName="dmnVariable"
propertyHeading={dmnVariableColumnLabel}
Expand Down
12 changes: 11 additions & 1 deletion src/openforms/js/components/admin/forms/Field.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,17 @@ Field.propTypes = {
helpText: PropTypes.node,
required: PropTypes.bool,
errors: PropTypes.oneOfType([
PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.array])),
PropTypes.arrayOf(
PropTypes.oneOfType([
PropTypes.string,
PropTypes.array,
// react-intl message
PropTypes.shape({
defaultMessage: PropTypes.any,
id: PropTypes.string,
}),
])
),
PropTypes.string,
]),
fieldBox: PropTypes.bool,
Expand Down

0 comments on commit 3bc48aa

Please sign in to comment.