mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-11-10 12:47:46 +01:00
Added guard to getSources
This commit is contained in:
parent
664125d820
commit
2e79a8ff4c
1 changed files with 1 additions and 1 deletions
|
@ -102,7 +102,7 @@ class AddModal extends React.Component {
|
|||
}
|
||||
|
||||
for(let [key, val] of Object.entries(this.props.sources)) {
|
||||
if(types[val.type].indexOf(type) > -1) {
|
||||
if(types[val.type] && types[val.type].indexOf(type) > -1) {
|
||||
sources.push(key);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue