Fix ordering of projects
This commit is contained in:
parent
583701920a
commit
888ab4e5f3
1 changed files with 2 additions and 3 deletions
|
@ -53,9 +53,9 @@ export default class ProjectList extends React.Component {
|
|||
|
||||
|
||||
_fetch(page, callback, options) {
|
||||
getProjects().then(function (projects) {
|
||||
getProjects().then((projects) => {
|
||||
callback(this._sortByDate(projects));
|
||||
loaderHandler.hideLoader();
|
||||
callback(projects);
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,6 @@ export default class ProjectList extends React.Component {
|
|||
<View style={styles.listView}>
|
||||
<GiftedListView
|
||||
rowView={this.renderRow}
|
||||
firstLoader={true}
|
||||
refreshable={true}
|
||||
pagination={false}
|
||||
onFetch={this._fetch} />
|
||||
|
|
Reference in a new issue