mirror of
https://github.com/maputnik/editor.git
synced 2025-12-30 01:50:00 +00:00
Do not barf if glyphs url not set #113
This commit is contained in:
@@ -70,7 +70,7 @@ function replaceAccessToken(mapStyle) {
|
||||
}
|
||||
const changedStyle = {
|
||||
...mapStyle,
|
||||
glyphs: mapStyle.glyphs.replace('{key}', accessToken),
|
||||
glyphs: mapStyle.glyphs ? mapStyle.glyphs.replace('{key}', accessToken) : mapStyle.glyphs,
|
||||
sources: changedSources
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user