Merge pull request #612 from orangemug/fix/color-field-name-is-not-required

'name' is not a required property of <ColorField />
This commit is contained in:
Orange Mug 2020-01-30 09:47:06 +00:00 committed by GitHub
commit cc371d6a70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,7 +13,7 @@ function formatColor(color) {
class ColorField extends React.Component {
static propTypes = {
onChange: PropTypes.func.isRequired,
name: PropTypes.string.isRequired,
name: PropTypes.string,
value: PropTypes.string,
doc: PropTypes.string,
style: PropTypes.object,