mirror of
https://github.com/maputnik/editor.git
synced 2026-01-05 13:00:04 +00:00
Fixed broken token replacer function.
This commit is contained in:
@@ -99,7 +99,7 @@ function replaceSourceAccessToken(mapStyle, key, opts={}) {
|
||||
function replaceAccessTokens(mapStyle, opts={}) {
|
||||
let changedStyle = mapStyle;
|
||||
|
||||
Object.keys(tokens).forEach((tokenKey) => {
|
||||
Object.keys(mapStyle.sources).forEach((tokenKey) => {
|
||||
changedStyle = replaceSourceAccessToken(changedStyle, tokenKey, opts);
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user