-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Lens] Fix console error by passing I18nProvider to metric vis #82282
[Lens] Fix console error by passing I18nProvider to metric vis #82282
Conversation
Pinging @elastic/kibana-app (Team:KibanaApp) |
@@ -93,7 +93,9 @@ export const getMetricChartRenderer = ( | |||
) => { | |||
const resolvedFormatFactory = await formatFactory; | |||
ReactDOM.render( | |||
<MetricChart {...config} formatFactory={resolvedFormatFactory} />, | |||
<I18nProvider> | |||
<MetricChart {...config} formatFactory={resolvedFormatFactory} />, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, didn't run the code again. For reference, the error message only shows up if there is no data in the current time range and a metric like avg is used.
💚 Build SucceededMetrics [docs]async chunks size
History
To update your PR or re-run it, just comment with: |
…ic#82282) * [Lens] Fix console error by passing I18nProvider to metric vis * Update expression.tsx
… (#82337) * [Lens] Fix console error by passing I18nProvider to metric vis * Update expression.tsx
Summary
Removes this console error: