mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-31 22:19:22 +08:00
fix(File Tree): Stop display commit info if commit sha is empty (github: #53)
github #53
This commit is contained in:
@@ -222,7 +222,7 @@ class FileTree extends React.Component {
|
||||
currentPath ? currentPath + '/' + item.name : item.name
|
||||
)}>{item.name}</Link>
|
||||
</Typography>,
|
||||
<Link className={this.props.classes.linkCommitMessage} to={
|
||||
item.commit && item.commit.sha && <Link className={this.props.classes.linkCommitMessage} to={
|
||||
makeLink(
|
||||
this.props.currentRepositoryConfig.group.name,
|
||||
this.props.currentRepositoryConfig.repository.name,
|
||||
|
||||
Reference in New Issue
Block a user