mirror of
https://github.com/maputnik/editor.git
synced 2025-12-06 22:30:00 +00:00
Only apply filter if defined.
This commit is contained in:
@@ -430,9 +430,10 @@ export default class App extends React.Component {
|
|||||||
onLayerSelect={this.onLayerSelect.bind(this)} />
|
onLayerSelect={this.onLayerSelect.bind(this)} />
|
||||||
}
|
}
|
||||||
|
|
||||||
const elementStyle = {
|
const elementStyle = {};
|
||||||
"filter": `url('#${this.state.mapFilter}')`
|
if(this.state.mapFilter) {
|
||||||
};
|
elementStyle.filter = `url('#${this.state.mapFilter}')`;
|
||||||
|
}
|
||||||
|
|
||||||
return <div style={elementStyle}>
|
return <div style={elementStyle}>
|
||||||
{mapElement}
|
{mapElement}
|
||||||
|
|||||||
Reference in New Issue
Block a user