Skip to content

Commit

Permalink
tslint and add to bounds filter
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Aug 15, 2022
1 parent 81f13ba commit 93daf3c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export async function syncBoundsData({
query: dataFilters.query,
timeFilters: dataFilters.timeFilters,
timeslice: dataFilters.timeslice,
embeddableSearchContext: dataFilters.embeddableSearchContext,
filters: dataFilters.filters,
joinKeyFilter: dataFilters.joinKeyFilter,
applyGlobalQuery: source.getApplyGlobalQuery(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ export interface BoundsRequestMeta {
applyGlobalTime: boolean;
filters: Filter[];
query?: Query;
embeddableSearchContext?: {
query?: Query;
filters: Filter[];
};
sourceQuery?: Query;
timeFilters: TimeRange;
timeslice?: Timeslice;
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/maps/public/embeddable/map_embeddable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export class MapEmbeddable
const embeddableSearchContext = getEmbeddableSearchContext(
this._savedMap.getStore().getState()
);
return embeddableSearchContext.query;
return embeddableSearchContext?.query;
}

public supportedTriggers(): string[] {
Expand Down
2 changes: 2 additions & 0 deletions x-pack/plugins/maps/public/selectors/map_selectors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ describe('getDataFilters', () => {
timeslice,
query,
filters,
undefined, // embeddableSearchContext
searchSessionId,
searchSessionMapBuffer,
isReadOnly
Expand All @@ -92,6 +93,7 @@ describe('getDataFilters', () => {
timeslice,
query,
filters,
undefined, // embeddableSearchContext
searchSessionId,
undefined,
isReadOnly
Expand Down

0 comments on commit 93daf3c

Please sign in to comment.