Removed required from minzoom/maxzoom as it can be undefined.

See <https://www.mapbox.com/mapbox-gl-js/style-spec/#layer-minzoom>
This commit is contained in:
orangemug 2017-11-06 14:45:03 +00:00
parent e148607c7a
commit bb4f3482ad
2 changed files with 2 additions and 2 deletions

View file

@ -6,7 +6,7 @@ import NumberInput from '../inputs/NumberInput'
class MaxZoomBlock extends React.Component {
static propTypes = {
value: React.PropTypes.number.isRequired,
value: React.PropTypes.number,
onChange: React.PropTypes.func.isRequired,
}

View file

@ -6,7 +6,7 @@ import NumberInput from '../inputs/NumberInput'
class MinZoomBlock extends React.Component {
static propTypes = {
value: React.PropTypes.number.isRequired,
value: React.PropTypes.number,
onChange: React.PropTypes.func.isRequired,
}