diff --git a/frontend/src/pages/my-libs/mylib-repo-list-item.js b/frontend/src/pages/my-libs/mylib-repo-list-item.js index 6814b63eca..6aad093af0 100644 --- a/frontend/src/pages/my-libs/mylib-repo-list-item.js +++ b/frontend/src/pages/my-libs/mylib-repo-list-item.js @@ -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}); }