Skip to content

Commit

Permalink
Update DocViewerTab if columns is changed
Browse files Browse the repository at this point in the history
Signed-off-by: Tony Lee <[email protected]>
  • Loading branch information
tungsheng committed Nov 21, 2024
1 parent c928aec commit 9204dd9
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export class DocViewerTab extends React.Component<Props, State> {
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
);
Expand Down

0 comments on commit 9204dd9

Please sign in to comment.