Skip to content

Commit 3194dd3

Browse files
committed
Fix when propTypes for condition
1 parent 2cafef3 commit 3194dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-form-renderer/src/form-renderer/condition.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ const Condition = React.memo(
147147
);
148148

149149
const conditionProps = {
150-
when: PropTypes.string,
150+
when: PropTypes.oneOfType([PropTypes.string, PropTypes.arrayOf(PropTypes.string)]),
151151
is: PropTypes.oneOfType([PropTypes.array, PropTypes.string, PropTypes.object, PropTypes.number, PropTypes.bool]),
152152
isNotEmpty: PropTypes.bool,
153153
isEmpty: PropTypes.bool,

0 commit comments

Comments
 (0)