mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-03 07:55:36 +00:00
change published repo style and comment (#3865)
This commit is contained in:
@@ -143,7 +143,8 @@ class LibContentContainer extends React.Component {
|
||||
}
|
||||
|
||||
checkCurrentDirent = (deletedDirent) => {
|
||||
if (deletedDirent.name === this.state.currentDirent.name) {
|
||||
let { currentDirent } = this.state;
|
||||
if (currentDirent && deletedDirent.name === currentDirent.name) {
|
||||
this.setState({currentDirent: null});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user