Skip to content

Commit

Permalink
[Lens] Fix console error by passing I18nProvider to metric vis (#82282)
Browse files Browse the repository at this point in the history
* [Lens] Fix console error by passing I18nProvider to metric vis

* Update expression.tsx
  • Loading branch information
mbondyra authored Nov 2, 2020
1 parent f2bf8c9 commit ba1b20d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import './expression.scss';

import { I18nProvider } from '@kbn/i18n/react';
import React from 'react';
import ReactDOM from 'react-dom';
import {
Expand Down Expand Up @@ -93,7 +93,9 @@ export const getMetricChartRenderer = (
) => {
const resolvedFormatFactory = await formatFactory;
ReactDOM.render(
<MetricChart {...config} formatFactory={resolvedFormatFactory} />,
<I18nProvider>
<MetricChart {...config} formatFactory={resolvedFormatFactory} />
</I18nProvider>,
domNode,
() => {
handlers.done();
Expand Down

0 comments on commit ba1b20d

Please sign in to comment.