TNOCS/csWeb

Setting a style after applying a filter can result in an error

Opened this issue · 0 comments

If you apply a filter to a feature, and then use styling on any of the features on that layer, you can get the following error:

TypeError: Cannot read property 'appendChild' of null
    at Object.toFront (csWeb-dep.js:379)
    at e._bringToFront (csWeb-dep.js:382)
    at e.bringToFront (csWeb-dep.js:381)
    at LeafletRenderer.updateFeature (csComp.js:35927)
    at csComp.js:21028
    at Array.forEach (<anonymous>)
    at LayerService.setStyle (csComp.js:21025)
    at LayerService.toggleStyle (csComp.js:21043)
    at fn (eval at compile (csWeb-dep.js:264), <anonymous>:4:339)
    at e (csWeb-dep.js:309)