mirror of
https://github.com/maputnik/editor.git
synced 2025-12-25 07:30:00 +00:00
Use first vector source for OL3
This commit is contained in:
@@ -66,7 +66,7 @@ class AddModal extends React.Component {
|
||||
if(!this.state.source && sourceIds.length > 0) {
|
||||
this.setState({
|
||||
source: sourceIds[0],
|
||||
'source-layer': this.state['source-layer'] || nextProps.sources[sourceIds[0]][0]
|
||||
'source-layer': this.state['source-layer'] || (nextProps.sources[sourceIds[0]] || [])[0]
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user