mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Fixes an issue where the walkthrough would not display and cause an error
This commit is contained in:
@@ -98,7 +98,10 @@ export function uiIntro(context) {
|
||||
// Setup data layers (only OSM)
|
||||
var layers = context.layers();
|
||||
layers.all().forEach(function(item) {
|
||||
item.layer.enabled(item.id === 'osm');
|
||||
// if the layer has the function `enabled`
|
||||
if (typeof item.layer.enabled == 'function') {
|
||||
item.layer.enabled(item.id === 'osm');
|
||||
}
|
||||
});
|
||||
|
||||
// Mock geocoder
|
||||
|
||||
Reference in New Issue
Block a user