[Vega, TSVB, Timeline] fix send data request twice when opening visualizations. (#106398)

Closes: #106398

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
Alexey Antonov 2021-07-26 12:24:34 +03:00 committed by GitHub
parent 3027999435
commit 7c064ec31e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -136,6 +136,9 @@ export class VisualizeEmbeddable
this.deps = deps;
this.timefilter = timefilter;
this.syncColors = this.input.syncColors;
this.searchSessionId = this.input.searchSessionId;
this.query = this.input.query;
this.vis = vis;
this.vis.uiState.on('change', this.uiStateChangeHandler);
this.vis.uiState.on('reload', this.reload);
@ -149,7 +152,7 @@ export class VisualizeEmbeddable
}
this.subscriptions.push(
this.getUpdated$().subscribe((value) => {
this.getInput$().subscribe(() => {
const isDirty = this.handleChanges();
if (isDirty && this.handler) {