mirror of
https://github.com/maputnik/editor.git
synced 2026-01-06 21:40:01 +00:00
Fix the layer type test in LayerEditor component
`LayerSourceLayerBlock` was always included
This commit is contained in:
@@ -141,7 +141,7 @@ export default class LayerEditor extends React.Component {
|
|||||||
onChange={v => this.changeProperty(null, 'source', v)}
|
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 &&
|
||||||
<LayerSourceLayerBlock
|
<LayerSourceLayerBlock
|
||||||
sourceLayerIds={sourceLayerIds}
|
sourceLayerIds={sourceLayerIds}
|
||||||
value={this.props.layer['source-layer']}
|
value={this.props.layer['source-layer']}
|
||||||
|
|||||||
Reference in New Issue
Block a user