Skip to content

Commit 7c5ebed

Browse files
authored
[Discover] Fix double fetching of saved search embeddable (#84060) (#84618)
1 parent c2bdd1d commit 7c5ebed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/plugins/discover/public/application/embeddable/search_embeddable.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,11 @@ export class SearchEmbeddable
342342
if (isFetchRequired) {
343343
this.filtersSearchSource!.setField('filter', this.input.filters);
344344
this.filtersSearchSource!.setField('query', this.input.query);
345-
346-
this.fetch();
347-
348345
this.prevFilters = this.input.filters;
349346
this.prevQuery = this.input.query;
350347
this.prevTimeRange = this.input.timeRange;
348+
349+
this.fetch();
351350
} else if (this.searchScope) {
352351
// trigger a digest cycle to make sure non-fetch relevant changes are propagated
353352
this.searchScope.$applyAsync();

0 commit comments

Comments
 (0)