mirror of
https://github.com/maputnik/editor.git
synced 2026-09-01 09:57:27 +00:00
Set prop value for empty string
This commit is contained in:
@@ -26,6 +26,7 @@ export class Map extends React.Component {
|
||||
// TODO: If there is no map yet we need to apply the changes later?
|
||||
if(this.state.map) {
|
||||
style.diffStyles(this.props.mapStyle, nextProps.mapStyle).forEach(change => {
|
||||
console.log(change.command, ...change.args)
|
||||
this.state.map[change.command].apply(this.state.map, change.args);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user