mirror of
https://github.com/maputnik/editor.git
synced 2025-12-26 16:10:01 +00:00
Only set source layer if not undefined
This commit is contained in:
@@ -31,7 +31,7 @@ class AddModal extends React.Component {
|
||||
|
||||
if(this.state.type !== 'background') {
|
||||
layer.source = this.state.source
|
||||
if(this.state.type !== 'raster') {
|
||||
if(this.state.type !== 'raster' && this.state['source-layer']) {
|
||||
layer['source-layer'] = this.state['source-layer']
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user