Skip to content

Commit

Permalink
ensure editor mode propagates correctly (#13355)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Aug 10, 2017
1 parent 47abe12 commit 2e5fe5f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ui/public/vis/vis.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 2e5fe5f

Please sign in to comment.