1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 08:28:11 +00:00

[eslint] updated eslintrc and improved the code (#4702)

This commit is contained in:
llj
2020-11-02 13:56:35 +08:00
committed by GitHub
parent ed3e5fc416
commit 04f29704b3
337 changed files with 1586 additions and 1585 deletions

View File

@@ -93,7 +93,7 @@ class App extends Component {
this.navigateClientUrlToLib();
// e.g. from http://127.0.0.1:8000/drafts/reviews/
// get reviews
// get reviews
// TODO: need refactor later
let href = window.location.href.split('/');
if (isDocs) {
@@ -106,16 +106,16 @@ class App extends Component {
editUtilities.listDrafts().then(res => {
this.setState({
draftCounts: res.data.draft_counts,
draftList: res.data.data,
draftList: res.data.data,
isLoadingDraft: false,
});
});
});
}
updateDraftsList = (draft_id) => {
this.setState({
draftCounts: this.state.draftCounts - 1,
draftList: this.state.draftList.filter(draft => draft.id != draft_id),
draftList: this.state.draftList.filter(draft => draft.id != draft_id),
});
}
@@ -176,7 +176,7 @@ class App extends Component {
if (!Utils.isDesktop() && !this.state.isSidePanelClosed) {
this.setState({ isSidePanelClosed: true });
}
}
}
generatorPrefix = (tabName, groupID) => {
let pathPrefix = [];