mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 17:21:18 +01:00
Merge pull request #479 from maputnik/revert-465-source_layer_list
Revert "Use replaceAccessTokens in onStyleChanged"
This commit is contained in:
commit
10ae69e41f
1 changed files with 1 additions and 5 deletions
|
@ -258,10 +258,6 @@ export default class App extends React.Component {
|
|||
|
||||
this.revisionStore.addRevision(newStyle)
|
||||
if(save) this.saveStyle(newStyle)
|
||||
this.setState({
|
||||
mapStyle: style.replaceAccessTokens(newStyle, {allowFallback: true}),
|
||||
})
|
||||
this.fetchSources()
|
||||
this.setState({
|
||||
mapStyle: newStyle,
|
||||
errors: [],
|
||||
|
@ -270,9 +266,9 @@ export default class App extends React.Component {
|
|||
this.setState({
|
||||
errors: errors.map(err => err.message)
|
||||
})
|
||||
this.fetchSources()
|
||||
}
|
||||
|
||||
this.fetchSources();
|
||||
}
|
||||
|
||||
onUndo = () => {
|
||||
|
|
Loading…
Reference in a new issue