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

fix search another result page refresh (#6653)

This commit is contained in:
Michael An
2024-08-27 18:30:42 +08:00
committed by GitHub
parent a9f7442a9b
commit 4e926821a0

View File

@@ -156,6 +156,7 @@ class LibContentView extends React.Component {
const isGroupOwnedRepo = repoInfo.owner_email.includes('@seafile_group'); const isGroupOwnedRepo = repoInfo.owner_email.includes('@seafile_group');
this.setState({ this.setState({
treeData: treeHelper.buildTree(),
currentRepoInfo: repoInfo, currentRepoInfo: repoInfo,
repoName: repoInfo.repo_name, repoName: repoInfo.repo_name,
libNeedDecrypt: repoInfo.lib_need_decrypt, libNeedDecrypt: repoInfo.lib_need_decrypt,
@@ -164,6 +165,10 @@ class LibContentView extends React.Component {
path: path path: path
}); });
if (this.state.isTreePanelShown) {
this.loadSidePanel(path);
}
if (repoInfo.permission.startsWith('custom-')) { if (repoInfo.permission.startsWith('custom-')) {
await this.setCustomPermission(repoID, repoInfo.permission); await this.setCustomPermission(repoID, repoInfo.permission);
} }