1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 06:34:40 +00:00

Merge pull request #7648 from haiwen/fix/path_navigation

reset state after navigation
This commit is contained in:
Michael An
2025-03-23 09:47:03 +08:00
committed by GitHub

View File

@@ -1081,6 +1081,7 @@ class LibContentView extends React.Component {
};
onMainNavBarClick = (nodePath) => {
this.resetSelected({ path: nodePath });
if (this.state.isTreePanelShown) {
let tree = this.state.treeData.clone();
let node = tree.getNodeByPath(nodePath);