mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 01:12:03 +00:00
[eslint] updated eslintrc and improved the code (#4702)
This commit is contained in:
@@ -23,15 +23,15 @@ class ListRepoDraftsDialog extends React.Component {
|
||||
};
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
componentDidMount() {
|
||||
seafileAPI.listRepoDrafts(this.props.repoID).then(res => {
|
||||
let drafts = res.data.drafts.map(item => {
|
||||
let draft = new Draft(item);
|
||||
return draft;
|
||||
});
|
||||
this.setState({
|
||||
drafts: drafts
|
||||
});
|
||||
drafts: drafts
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user