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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user