1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-03 07:55:36 +00:00

history feedback

This commit is contained in:
zxj96
2019-06-03 21:04:19 +08:00
parent 7f795d3816
commit 925823e10a
2 changed files with 5 additions and 2 deletions

View File

@@ -130,11 +130,11 @@ class RepoListItem extends React.Component {
this.props.onDirentItemClick(repo, filePath, dirent);
}
onRepoItemClick = () => {
onRepoItemClick = (e) => {
if (!this.isCurrentRepo() || this.props.selectedPath !== '') {
this.props.onRepoItemClick(this.props.repo);
} else {
this.onToggleClick();
this.onToggleClick(e);
}
}