Skip to content

Commit

Permalink
[Discover] Fix double fetching of saved search embeddable (#84060) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal authored Dec 1, 2020
1 parent c2bdd1d commit 7c5ebed
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -342,12 +342,11 @@ export class SearchEmbeddable
if (isFetchRequired) {
this.filtersSearchSource!.setField('filter', this.input.filters);
this.filtersSearchSource!.setField('query', this.input.query);

this.fetch();

this.prevFilters = this.input.filters;
this.prevQuery = this.input.query;
this.prevTimeRange = this.input.timeRange;

this.fetch();
} else if (this.searchScope) {
// trigger a digest cycle to make sure non-fetch relevant changes are propagated
this.searchScope.$applyAsync();
Expand Down

0 comments on commit 7c5ebed

Please sign in to comment.