mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 23:20:51 +00:00
repair bug (#3259)
This commit is contained in:
@@ -258,7 +258,11 @@ class LibContentContainer extends React.Component {
|
|||||||
{this.props.isDirentDetailShow &&
|
{this.props.isDirentDetailShow &&
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<div className="cur-view-detail">
|
<div className="cur-view-detail">
|
||||||
{this.props.path !== '/' ?
|
{(this.props.path === '/' && !this.state.currentDirent) ?
|
||||||
|
<LibDetail
|
||||||
|
currentRepo={this.props.currentRepoInfo}
|
||||||
|
closeDetails={this.props.closeDirentDetail}
|
||||||
|
/> :
|
||||||
<DirentDetail
|
<DirentDetail
|
||||||
repoID={repoID}
|
repoID={repoID}
|
||||||
path={this.props.path}
|
path={this.props.path}
|
||||||
@@ -266,10 +270,6 @@ class LibContentContainer extends React.Component {
|
|||||||
currentRepoInfo={this.props.currentRepoInfo}
|
currentRepoInfo={this.props.currentRepoInfo}
|
||||||
onFileTagChanged={this.props.onFileTagChanged}
|
onFileTagChanged={this.props.onFileTagChanged}
|
||||||
onItemDetailsClose={this.props.closeDirentDetail}
|
onItemDetailsClose={this.props.closeDirentDetail}
|
||||||
/> :
|
|
||||||
<LibDetail
|
|
||||||
currentRepo={this.props.currentRepoInfo}
|
|
||||||
closeDetails={this.props.closeDirentDetail}
|
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
Reference in New Issue
Block a user