Skip to content

Commit 24a3c39

Browse files
ensure editor mode propagates correctly (#13355)
1 parent dd36884 commit 24a3c39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ui/public/vis/vis.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ export function VisProvider(Private, indexPatterns, timefilter, getAppState) {
135135
clone() {
136136
const uiJson = this.hasUiState() ? this.getUiState().toJSON() : {};
137137
const uiState = new PersistedState(uiJson);
138-
return new Vis(this.indexPattern, this.getState(), uiState);
138+
const clonedVis = new Vis(this.indexPattern, this.getState(), uiState);
139+
clonedVis.editorMode = this.editorMode;
140+
return clonedVis;
139141
}
140142

141143
requesting() {

0 commit comments

Comments
 (0)