1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-05-12 18:05:05 +00:00

Merge pull request 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
commit 61cfae3d08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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