diff --git a/src/components/App.jsx b/src/components/App.jsx index 3051b46..943879b 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -430,9 +430,10 @@ export default class App extends React.Component { onLayerSelect={this.onLayerSelect.bind(this)} /> } - const elementStyle = { - "filter": `url('#${this.state.mapFilter}')` - }; + const elementStyle = {}; + if(this.state.mapFilter) { + elementStyle.filter = `url('#${this.state.mapFilter}')`; + } return
{mapElement}