fixes angular vis type so it correctly propagates events up to visualize (#15629) (#15658)

This commit is contained in:
Peter Pisljar 2017-12-18 10:07:07 +01:00 committed by GitHub
parent e5eb9d0713
commit df790a42c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,8 +15,7 @@ export function AngularVisTypeProvider(Private, $compile, $rootScope) {
return new Promise((resolve, reject) => {
const updateScope = () => {
this.$scope.vis = this.vis.clone();
this.$scope.vis.setUiState(this.vis.getUiState());
this.$scope.vis = this.vis;
this.$scope.esResponse = esResponse;
this.$scope.renderComplete = resolve;
this.$scope.renderFailed = reject;