mirror of
https://github.com/maputnik/editor.git
synced 2026-08-01 10:47:26 +00:00
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:
@@ -6,7 +6,7 @@ import NumberInput from '../inputs/NumberInput'
|
|||||||
|
|
||||||
class MaxZoomBlock extends React.Component {
|
class MaxZoomBlock extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
value: React.PropTypes.number.isRequired,
|
value: React.PropTypes.number,
|
||||||
onChange: React.PropTypes.func.isRequired,
|
onChange: React.PropTypes.func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import NumberInput from '../inputs/NumberInput'
|
|||||||
|
|
||||||
class MinZoomBlock extends React.Component {
|
class MinZoomBlock extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
value: React.PropTypes.number.isRequired,
|
value: React.PropTypes.number,
|
||||||
onChange: React.PropTypes.func.isRequired,
|
onChange: React.PropTypes.func.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user