diff --git a/x-pack/plugins/code/public/components/file_tree/file_tree.tsx b/x-pack/plugins/code/public/components/file_tree/file_tree.tsx index bd390665c11d8..947c5cf370068 100644 --- a/x-pack/plugins/code/public/components/file_tree/file_tree.tsx +++ b/x-pack/plugins/code/public/components/file_tree/file_tree.tsx @@ -37,18 +37,6 @@ interface Props extends RouteComponentProps { } export class CodeFileTree extends React.Component { - public componentDidUpdate(prevProps: Readonly): void { - const { openedPaths, match, treeLoading } = this.props; - const path = match.params.path; - if (path) { - if (prevProps.match.params.path !== path || prevProps.treeLoading !== treeLoading) { - if (!openedPaths.includes(path)) { - this.props.openTreePath(path); - } - } - } - } - public componentDidMount(): void { const { path } = this.props.match.params; if (path) {