Fix many React warnings

This commit is contained in:
Lukas Martinelli
2017-01-10 09:38:27 +01:00
parent ec9fc8f6ad
commit 766a3e387e
6 changed files with 23 additions and 23 deletions

View File

@@ -76,6 +76,7 @@ export default class SpecField extends React.Component {
} else {
return <SelectInput
{...commonProps}
value={this.props.value || this.props.fieldSpec.default}
options={options}
/>
}

View File

@@ -182,7 +182,7 @@ export default class ZoomSpecField extends React.Component {
<DocLabel
label={<FunctionIcon />}
cursorTargetStyle={{ cursor: 'pointer' }}
doc="Turn property into a zoom function to enable a map feature to change with map's zoom level."
doc={"Turn property into a zoom function to enable a map feature to change with map's zoom level."}
/>
</Button>
}