Commit b394d25e authored by Florent Chehab's avatar Florent Chehab

Allow null in field value

parent a24f4316
......@@ -134,7 +134,7 @@ Field.propTypes = {
required: PropTypes.bool.isRequired, // is the field required ?
label: PropTypes.string, // text to go along the field
comment: PropTypes.string, // text to give more information on what is expected
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired, // value of the field
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]), // value of the field
form: PropTypes.object, // required in constructor (reference of to the) form containing the field
fieldMapping: PropTypes.string.isRequired, // name of the field in the data
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment