mirror of
https://github.com/haiwen/seahub.git
synced 2025-05-12 18:05:05 +00:00
Merge pull request #7648 from haiwen/fix/path_navigation
reset state after navigation
This commit is contained in:
commit
61cfae3d08
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user