Skip to content

Commit

Permalink
Add back in i18n context for embeddable
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Apr 17, 2020
1 parent b1d4dd8 commit dff7bc6
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions x-pack/plugins/maps/public/embeddable/map_embeddable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ import {
Query,
RefreshInterval,
} from '../../../../../src/plugins/data/public';

import { GisMap } from '../connected_components/gis_map';

import { createMapStore, MapStore } from '../reducers/store';
import {
setGotoWithCenter,
Expand All @@ -53,10 +51,8 @@ import {
} from '../reducers/non_serializable_instances';
import { getMapCenter, getMapZoom, getHiddenLayerIds } from '../selectors/map_selectors';
import { MAP_SAVED_OBJECT_TYPE } from '../../common/constants';

import { RenderToolTipContent } from '../layers/tooltips/tooltip_property';

import { getUiActions } from '../kibana_services';
import { getUiActions, getCoreI18n } from '../kibana_services';

interface MapEmbeddableConfig {
editUrl?: string;
Expand Down Expand Up @@ -244,12 +240,16 @@ export class MapEmbeddable extends Embeddable<MapEmbeddableInput, MapEmbeddableO

this._domNode = domNode;

const I18nContext = getCoreI18n().Context;

render(
<Provider store={this._store}>
<GisMap
addFilters={this.input.hideFilterActions ? null : this.addFilters}
renderTooltipContent={this._renderTooltipContent}
/>
<I18nContext>
<GisMap
addFilters={this.input.hideFilterActions ? null : this.addFilters}
renderTooltipContent={this._renderTooltipContent}
/>
</I18nContext>
</Provider>,
this._domNode
);
Expand Down

0 comments on commit dff7bc6

Please sign in to comment.