- {!this.state.isStarred && }
- {this.state.isStarred && }
+
+
+
|
 |
diff --git a/frontend/src/pages/shared-libs/shared-libs.js b/frontend/src/pages/shared-libs/shared-libs.js
index 6c078abb5c..903c520aca 100644
--- a/frontend/src/pages/shared-libs/shared-libs.js
+++ b/frontend/src/pages/shared-libs/shared-libs.js
@@ -169,7 +169,8 @@ class Item extends Component {
this.setState({isShowSharedDialog: false});
}
- onToggleStarRepo = () => {
+ onToggleStarRepo = (e) => {
+ e.preventDefault();
const repoName = this.props.data.repo_name;
if (this.state.isStarred) {
seafileAPI.unstarItem(this.props.data.repo_id, '/').then(() => {
|