Skip to content

Commit

Permalink
Merge branch 'issue_91282' of github.com:nreese/kibana into issue_91282
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Aug 15, 2022
2 parents 92ea5b8 + 7fb0e37 commit 81f13ba
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions x-pack/plugins/maps/public/embeddable/map_embeddable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,16 @@ export class MapEmbeddable
}

public async getFilters() {
const embeddableSearchContext = getEmbeddableSearchContext(this._savedMap.getStore().getState());
const embeddableSearchContext = getEmbeddableSearchContext(
this._savedMap.getStore().getState()
);
return embeddableSearchContext ? embeddableSearchContext.filters : [];
}

public async getQuery() {
const embeddableSearchContext = getEmbeddableSearchContext(this._savedMap.getStore().getState());
const embeddableSearchContext = getEmbeddableSearchContext(
this._savedMap.getStore().getState()
);
return embeddableSearchContext.query;
}

Expand Down

0 comments on commit 81f13ba

Please sign in to comment.