Sort matches in fullscreen view
This commit is contained in:
parent
4aa3f65452
commit
a60a343db7
|
|
@ -40,7 +40,7 @@ export function getTournamentMatches(tournamentId, successCallback, errorCallbac
|
||||||
}
|
}
|
||||||
getRequest(getState(), '/tournaments/' + tournamentId + '/matches' + matchFilter)
|
getRequest(getState(), '/tournaments/' + tournamentId + '/matches' + matchFilter)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
successCallback(response.status, response.data.map(match => convertMatch(match)));
|
successCallback(response.status, response.data.sort((a, b) => a.position > b.position).map(match => convertMatch(match)));
|
||||||
})
|
})
|
||||||
.catch(errorCallback);
|
.catch(errorCallback);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue