mirror of
https://github.com/maputnik/editor.git
synced 2026-05-05 07:40:02 +00:00
Merge pull request #479 from maputnik/revert-465-source_layer_list
Revert "Use replaceAccessTokens in onStyleChanged"
This commit is contained in:
@@ -258,10 +258,6 @@ export default class App extends React.Component {
|
|||||||
|
|
||||||
this.revisionStore.addRevision(newStyle)
|
this.revisionStore.addRevision(newStyle)
|
||||||
if(save) this.saveStyle(newStyle)
|
if(save) this.saveStyle(newStyle)
|
||||||
this.setState({
|
|
||||||
mapStyle: style.replaceAccessTokens(newStyle, {allowFallback: true}),
|
|
||||||
})
|
|
||||||
this.fetchSources()
|
|
||||||
this.setState({
|
this.setState({
|
||||||
mapStyle: newStyle,
|
mapStyle: newStyle,
|
||||||
errors: [],
|
errors: [],
|
||||||
@@ -270,9 +266,9 @@ export default class App extends React.Component {
|
|||||||
this.setState({
|
this.setState({
|
||||||
errors: errors.map(err => err.message)
|
errors: errors.map(err => err.message)
|
||||||
})
|
})
|
||||||
this.fetchSources()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.fetchSources();
|
||||||
}
|
}
|
||||||
|
|
||||||
onUndo = () => {
|
onUndo = () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user