From 9204dd9cdc6083b5c430f0470b5fe85889e9cdb2 Mon Sep 17 00:00:00 2001 From: Tony Lee Date: Thu, 21 Nov 2024 09:56:32 -0800 Subject: [PATCH] Update DocViewerTab if columns is changed Signed-off-by: Tony Lee --- .../public/application/components/doc_viewer/doc_viewer_tab.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/discover/public/application/components/doc_viewer/doc_viewer_tab.tsx b/src/plugins/discover/public/application/components/doc_viewer/doc_viewer_tab.tsx index 6e7a5f1ac434..1f8492ef21f9 100644 --- a/src/plugins/discover/public/application/components/doc_viewer/doc_viewer_tab.tsx +++ b/src/plugins/discover/public/application/components/doc_viewer/doc_viewer_tab.tsx @@ -65,6 +65,7 @@ export class DocViewerTab extends React.Component { shouldComponentUpdate(nextProps: Props, nextState: State) { return ( nextProps.renderProps.hit._id !== this.props.renderProps.hit._id || + nextProps.renderProps.columns !== this.props.renderProps.columns || nextProps.id !== this.props.id || nextState.hasError );