1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 19:01:42 +00:00

reset state after navigation

This commit is contained in:
zhouwenxuan
2025-03-20 14:33:58 +08:00
parent fa79c2b3a3
commit ec9e513699

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);