From 7c90b859f28304a1e659901f4dcaf8e23ed648f4 Mon Sep 17 00:00:00 2001 From: Peter Pisljar Date: Mon, 18 Dec 2017 08:52:37 +0100 Subject: [PATCH] fixes angular vis type so it correctly propagates events up to visualize (#15629) --- src/ui/public/vis/vis_types/angular_vis_type.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/public/vis/vis_types/angular_vis_type.js b/src/ui/public/vis/vis_types/angular_vis_type.js index 9a962d35bb22f..325ef64388118 100644 --- a/src/ui/public/vis/vis_types/angular_vis_type.js +++ b/src/ui/public/vis/vis_types/angular_vis_type.js @@ -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;