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

repair bug (#3259)

This commit is contained in:
杨顺强
2019-04-12 20:34:19 +08:00
committed by Daniel Pan
parent 611e2aefb1
commit 8ac5c9be9b

View File

@@ -258,7 +258,11 @@ class LibContentContainer extends React.Component {
{this.props.isDirentDetailShow &&
<Fragment>
<div className="cur-view-detail">
{this.props.path !== '/' ?
{(this.props.path === '/' && !this.state.currentDirent) ?
<LibDetail
currentRepo={this.props.currentRepoInfo}
closeDetails={this.props.closeDirentDetail}
/> :
<DirentDetail
repoID={repoID}
path={this.props.path}
@@ -266,10 +270,6 @@ class LibContentContainer extends React.Component {
currentRepoInfo={this.props.currentRepoInfo}
onFileTagChanged={this.props.onFileTagChanged}
onItemDetailsClose={this.props.closeDirentDetail}
/> :
<LibDetail
currentRepo={this.props.currentRepoInfo}
closeDetails={this.props.closeDirentDetail}
/>
}
</div>