Skip to content

Commit 0736590

Browse files
authored
Merge pull request #58 from go-spatial/settings-bug-fix
fixed source settings bug
2 parents 8d46354 + 33f14c9 commit 0736590

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/view/Vmap/Vmapbox.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export default class Vmapbox extends React.Component {
163163
if (!matchKey) return {url: url};
164164
const settings = Msource.getSettings(matchKey);
165165

166-
if (!settings.has('headers')){
166+
if (!settings || !settings.has('headers')){
167167
return {url: url};
168168
}
169169
return {

0 commit comments

Comments
 (0)