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

[fix] readme (#2858)

This commit is contained in:
Michael An
2019-01-19 17:45:28 +08:00
committed by Daniel Pan
parent db5a7481de
commit a0f1bbf445
2 changed files with 4 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class RepoInfoBar extends React.Component {
render() {
let {repoID, currentPath, usedRepoTags, readmeMarkdown} = this.props;
let href = readmeMarkdown !== null ? siteRoot + 'lib/' + repoID + '/file' + Utils.joinPath(currentPath, readmeMarkdown.name) : '';
let filePath = currentPath + 'readme.md';
let filePath = readmeMarkdown !== null ? currentPath + readmeMarkdown.name : '';
return (
<div className="repo-info-bar">
{usedRepoTags.length > 0 && (
@@ -152,6 +152,7 @@ class RepoInfoBar extends React.Component {
repoID={repoID}
filePath={filePath}
href={href}
fileName={readmeMarkdown.name}
/>
</ModalPortal>
)}