Skip to content

Commit

Permalink
Remove unnecessary displaying error code
Browse files Browse the repository at this point in the history
  • Loading branch information
DianaDerevyankina committed Sep 18, 2020
1 parent 557776e commit 5ff70cd
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import PropTypes from 'prop-types';
import React from 'react';
import _ from 'lodash';
import { i18n } from '@kbn/i18n';

import { TimeseriesVisualization } from './vis_types/timeseries/vis';
import { metric } from './vis_types/metric/vis';
Expand All @@ -44,13 +43,6 @@ export function Visualization(props) {
const { visData, model } = props;
// Show the error panel
const error = _.get(visData, `${model.id}.error`);
if (_.get(error, 'error.type') === 'index_not_found_exception') {
const index = _.get(error, 'error.index');
error.message = i18n.translate('visTypeTimeseries.error.missingIndexErrorMessage', {
defaultMessage: 'Index "{index}" is missing',
values: { index },
});
}
if (error) {
return (
<div className={props.className}>
Expand Down

0 comments on commit 5ff70cd

Please sign in to comment.