From fdf874c4c1ede11c70b779caaf4910db502d0dcd Mon Sep 17 00:00:00 2001
From: ppisljar <peter.pisljar@gmail.com>
Date: Mon, 23 Mar 2020 05:13:15 -0700
Subject: [PATCH] fixing tsvb issue

---
 .../kibana/public/visualize/np_ready/editor/editor.js         | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/legacy/core_plugins/kibana/public/visualize/np_ready/editor/editor.js b/src/legacy/core_plugins/kibana/public/visualize/np_ready/editor/editor.js
index a85bdb5147766..4bfeea7c18971 100644
--- a/src/legacy/core_plugins/kibana/public/visualize/np_ready/editor/editor.js
+++ b/src/legacy/core_plugins/kibana/public/visualize/np_ready/editor/editor.js
@@ -474,9 +474,7 @@ function VisualizeAppController(
         vis.setState({
           ...visState,
           data: {
-            aggs: aggs,
-            indexPattern: vis.data.indexPattern.id,
-            searchSource: vis.data.searchSource,
+            aggs,
           },
         });
         embeddableHandler.reload();