From 04531b4305631e5b6afc7cea3509e4177350611b Mon Sep 17 00:00:00 2001 From: Orange Mug Date: Fri, 4 Jan 2019 14:32:41 +0000 Subject: [PATCH] Revert "Use replaceAccessTokens in onStyleChanged" --- src/components/App.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/components/App.jsx b/src/components/App.jsx index e2d34c9..6fc5ce9 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -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 = () => {