[vega] fix vega map validation errors crashing vega (#112700)

* [vega] fix vega map validation errors crashing vega

* eslint

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Nathan Reese 2021-09-22 07:17:53 -06:00 committed by GitHub
parent 68fb9f6d84
commit 84e42e42bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -72,7 +72,7 @@ export class VegaMapView extends VegaBaseView {
const { zoom, maxZoom, minZoom } = validateZoomSettings(
this._parser.mapConfig,
defaults,
this.onWarn
this.onWarn.bind(this)
);
const { signals } = this._vegaStateRestorer.restore() || {};