Skip to content

Commit

Permalink
Fix adding column from doc viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal committed Mar 30, 2021
1 parent 1e87cef commit af84488
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
*/

import React from 'react';
import { isEqual } from 'lodash';
import { I18nProvider } from '@kbn/i18n/react';
import { DocViewRenderTab } from './doc_viewer_render_tab';
import { DocViewerError } from './doc_viewer_render_error';
Expand Down Expand Up @@ -46,6 +47,7 @@ export class DocViewerTab extends React.Component<Props, State> {
return (
nextProps.renderProps.hit._id !== this.props.renderProps.hit._id ||
nextProps.id !== this.props.id ||
!isEqual(nextProps.renderProps.columns, this.props.renderProps.columns) ||
nextState.hasError
);
}
Expand Down

0 comments on commit af84488

Please sign in to comment.