Skip to content

Commit

Permalink
only set searchSessionMapBuffer when search session isRestore
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Feb 11, 2021
1 parent 4da3e05 commit 67d7a5c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion x-pack/plugins/maps/public/embeddable/map_embeddable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ import {
getCoreI18n,
getHttp,
getChartsPaletteServiceGetColor,
getSearchService,
} from '../kibana_services';
import { LayerDescriptor } from '../../common/descriptor_types';
import { MapContainer } from '../connected_components/map_container';
Expand Down Expand Up @@ -244,7 +245,11 @@ export class MapEmbeddable
timeFilters: this.input.timeRange,
forceRefresh,
searchSessionId: this.input.searchSessionId,
searchSessionMapBuffer: this.input.mapBuffer,
searchSessionMapBuffer: getSearchService().session.getSearchOptions(
this.input.searchSessionId
).isRestore
? this.input.mapBuffer
: undefined,
})
);
}
Expand Down

0 comments on commit 67d7a5c

Please sign in to comment.