mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-07 18:03:48 +00:00
repair save-share-file-dialog bug (#3826)
* repair save-share-file-dialog bug * repair click bug * Remove extra code
This commit is contained in:
@@ -110,9 +110,9 @@ class FileChooser extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
onCurrentRepoToggle = () => [
|
||||
this.setState({isCurrentRepoShow: !this.state.isCurrentRepoShow})
|
||||
]
|
||||
onCurrentRepoToggle = () => {
|
||||
this.setState({isCurrentRepoShow: !this.state.isCurrentRepoShow});
|
||||
}
|
||||
|
||||
onDirentItemClick = (repo, filePath, dirent) => {
|
||||
this.props.onDirentItemClick(repo, filePath, dirent);
|
||||
@@ -310,7 +310,7 @@ class FileChooser extends React.Component {
|
||||
selectedItemInfo: selectedItemInfo
|
||||
});
|
||||
|
||||
if (item.repo_id === this.props.repoID) {
|
||||
if (this.props.repoID && item.repo_id === this.props.repoID) {
|
||||
seafileAPI.getRepoInfo(this.props.repoID).then(res => {
|
||||
// need to optimized
|
||||
let repoInfo = new RepoInfo(res.data);
|
||||
|
Reference in New Issue
Block a user