diff --git a/src/components/modals/ExportModal.jsx b/src/components/modals/ExportModal.jsx index d093f38..56a6481 100644 --- a/src/components/modals/ExportModal.jsx +++ b/src/components/modals/ExportModal.jsx @@ -43,7 +43,10 @@ class Gist extends React.Component { ...this.state, saving: true }); - const preview = this.state.preview && (this.props.mapStyle.metadata || {})['maputnik:openmaptiles_access_token']; + + const preview = this.state.preview; + + const mapboxToken = (this.props.mapStyle.metadata || {})['maputnik:mapbox_access_token']; const mapStyleStr = preview ? styleSpec.format(stripAccessTokens(style.replaceAccessToken(this.props.mapStyle))) : @@ -66,6 +69,7 @@ class Gist extends React.Component {