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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user