Revert "Use replaceAccessTokens in onStyleChanged"

This commit is contained in:
Orange Mug 2019-01-04 14:32:41 +00:00 committed by GitHub
parent 7ab4b2481c
commit 04531b4305
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = () => {