Fix bug setting layout/paint props directly on layer

This commit is contained in:
Lukas Martinelli
2016-12-20 14:13:37 +01:00
parent 7ca48add75
commit 9374ff29e7
4 changed files with 32 additions and 34 deletions

View File

@@ -61,6 +61,7 @@ export default class LayerEditor extends React.Component {
onPropertyChange(group, property, newValue) {
const layer = this.props.layer
console.log(group, property, newValue)
const changedLayer = layer.setIn([group, property], newValue)
this.props.onLayerChanged(changedLayer)
}