mirror of
https://github.com/maputnik/editor.git
synced 2026-06-22 15:17:29 +00:00
Fix non existing value warning
This commit is contained in:
@@ -70,6 +70,7 @@ export default class SpecField extends React.Component {
|
|||||||
if(options.length <= 3 && optionsLabelLength(options) <= 20) {
|
if(options.length <= 3 && optionsLabelLength(options) <= 20) {
|
||||||
return <MultiButtonInput
|
return <MultiButtonInput
|
||||||
{...commonProps}
|
{...commonProps}
|
||||||
|
value={this.props.value || this.props.fieldSpec.default}
|
||||||
options={options}
|
options={options}
|
||||||
/>
|
/>
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ function hasNestedCombiningFilter(filter) {
|
|||||||
export default class CombiningFilterEditor extends React.Component {
|
export default class CombiningFilterEditor extends React.Component {
|
||||||
static propTypes = {
|
static propTypes = {
|
||||||
/** Properties of the vector layer and the available fields */
|
/** Properties of the vector layer and the available fields */
|
||||||
properties: React.PropTypes.object.isRequired,
|
properties: React.PropTypes.object,
|
||||||
filter: React.PropTypes.array,
|
filter: React.PropTypes.array,
|
||||||
onChange: React.PropTypes.func.isRequired,
|
onChange: React.PropTypes.func.isRequired,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user