mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 17:21:18 +01:00
Fix non existing value warning
This commit is contained in:
parent
cff0a15f7e
commit
f806e797fa
2 changed files with 2 additions and 1 deletions
|
@ -70,6 +70,7 @@ export default class SpecField extends React.Component {
|
|||
if(options.length <= 3 && optionsLabelLength(options) <= 20) {
|
||||
return <MultiButtonInput
|
||||
{...commonProps}
|
||||
value={this.props.value || this.props.fieldSpec.default}
|
||||
options={options}
|
||||
/>
|
||||
} else {
|
||||
|
|
|
@ -30,7 +30,7 @@ function hasNestedCombiningFilter(filter) {
|
|||
export default class CombiningFilterEditor extends React.Component {
|
||||
static propTypes = {
|
||||
/** Properties of the vector layer and the available fields */
|
||||
properties: React.PropTypes.object.isRequired,
|
||||
properties: React.PropTypes.object,
|
||||
filter: React.PropTypes.array,
|
||||
onChange: React.PropTypes.func.isRequired,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue