From 26de95a263bf1150667ded37b9cd5b145dd66deb Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 16 Oct 2019 15:34:24 +0200 Subject: [PATCH] Fix the layer type test in LayerEditor component `LayerSourceLayerBlock` was always included --- src/components/layers/LayerEditor.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/layers/LayerEditor.jsx b/src/components/layers/LayerEditor.jsx index 39c862d..ed16116 100644 --- a/src/components/layers/LayerEditor.jsx +++ b/src/components/layers/LayerEditor.jsx @@ -141,7 +141,7 @@ export default class LayerEditor extends React.Component { onChange={v => this.changeProperty(null, 'source', v)} /> } - {['background', 'raster', 'hillshade', 'heatmap'].indexOf(this.state.type) < 0 && + {['background', 'raster', 'hillshade', 'heatmap'].indexOf(this.props.layer.type) < 0 &&