From 2df0c27d3de1069f8e1482949ebaa198e80d1502 Mon Sep 17 00:00:00 2001 From: Thomas Neirynck Date: Thu, 10 Aug 2017 18:12:42 -0400 Subject: [PATCH] ensure editor mode propagates correctly (#13355) --- src/ui/public/vis/vis.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ui/public/vis/vis.js b/src/ui/public/vis/vis.js index d8b951838743a..c01817e27fcf9 100644 --- a/src/ui/public/vis/vis.js +++ b/src/ui/public/vis/vis.js @@ -135,7 +135,9 @@ export function VisProvider(Private, indexPatterns, timefilter, getAppState) { clone() { const uiJson = this.hasUiState() ? this.getUiState().toJSON() : {}; const uiState = new PersistedState(uiJson); - return new Vis(this.indexPattern, this.getState(), uiState); + const clonedVis = new Vis(this.indexPattern, this.getState(), uiState); + clonedVis.editorMode = this.editorMode; + return clonedVis; } requesting() {