mirror of
https://github.com/maputnik/editor.git
synced 2025-12-27 00:20:00 +00:00
find correct zoom attribute in spec
This commit is contained in:
@@ -16,7 +16,7 @@ export default class FunctionButtons extends React.Component {
|
||||
|
||||
render() {
|
||||
let makeZoomButton, makeDataButton
|
||||
if (this.props.fieldSpec['zoom-function']) {
|
||||
if (this.props.fieldSpec.expression.parameters.includes('zoom')) {
|
||||
makeZoomButton = <Button
|
||||
className="maputnik-make-zoom-function"
|
||||
onClick={this.props.onZoomClick}
|
||||
|
||||
Reference in New Issue
Block a user