mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 16:11:15 +01:00
Merge pull request #221 from orangemug/fix/added-guard-to-get-sources
Added guard to getSources
This commit is contained in:
commit
4b0768d0a6
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