mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +00:00
improve tree loading for Wiki mode (#2842)
This commit is contained in:
@@ -368,7 +368,10 @@ class DirentListItem extends React.Component {
|
||||
render() {
|
||||
let { path, dirent } = this.props;
|
||||
let direntPath = Utils.joinPath(path, dirent.name);
|
||||
let dirHref = siteRoot + 'library/' + this.props.repoID + '/' + this.props.currentRepoInfo.repo_name + Utils.encodePath(direntPath);
|
||||
let dirHref = '';
|
||||
if (this.props.currentRepoInfo) {
|
||||
dirHref = siteRoot + 'library/' + this.props.repoID + '/' + this.props.currentRepoInfo.repo_name + Utils.encodePath(direntPath);
|
||||
}
|
||||
let fileHref = siteRoot + 'lib/' + this.props.repoID + '/file' + Utils.encodePath(direntPath);
|
||||
let toolTipID = MD5(dirent.name).slice(0, 7);
|
||||
let tagTitle = '';
|
||||
|
Reference in New Issue
Block a user