Skip to content

Commit 5ff70cd

Browse files
Remove unnecessary displaying error code
1 parent 557776e commit 5ff70cd

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/plugins/vis_type_timeseries/public/application/components/visualization.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import PropTypes from 'prop-types';
2121
import React from 'react';
2222
import _ from 'lodash';
23-
import { i18n } from '@kbn/i18n';
2423

2524
import { TimeseriesVisualization } from './vis_types/timeseries/vis';
2625
import { metric } from './vis_types/metric/vis';
@@ -44,13 +43,6 @@ export function Visualization(props) {
4443
const { visData, model } = props;
4544
// Show the error panel
4645
const error = _.get(visData, `${model.id}.error`);
47-
if (_.get(error, 'error.type') === 'index_not_found_exception') {
48-
const index = _.get(error, 'error.index');
49-
error.message = i18n.translate('visTypeTimeseries.error.missingIndexErrorMessage', {
50-
defaultMessage: 'Index "{index}" is missing',
51-
values: { index },
52-
});
53-
}
5446
if (error) {
5547
return (
5648
<div className={props.className}>

0 commit comments

Comments
 (0)