1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 11:57:34 +00:00

fix bug when sending share link email (#5247)

Co-authored-by: lian <lian@seafile.com>
This commit is contained in:
lian
2022-08-24 14:51:25 +08:00
committed by GitHub
parent 1252e7b6ef
commit 1eecd49472

View File

@@ -166,7 +166,11 @@ class MylibRepoListItem extends React.Component {
}
onShareToggle = (e) => {
e.preventDefault();
// when close share dialog after send share link email,
// there is no event
if (e != undefined) {
e.preventDefault();
}
this.setState({isShareDialogShow: !this.state.isShareDialogShow});
}