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