fixes #258 - reverse collection order (#345)

This commit is contained in:
Julian Krispel-Samsel 2017-04-05 23:02:13 +01:00 committed by David Calavera
parent f9e2b28d27
commit c560689edd

View File

@ -206,7 +206,7 @@ export function loadEntries(collection, page = 0) {
const provider = integration ? getIntegrationProvider(state.integrations, backend.getToken, integration) : backend;
dispatch(entriesLoading(collection));
provider.listEntries(collection, page).then(
response => dispatch(entriesLoaded(collection, response.entries, response.pagination)),
response => dispatch(entriesLoaded(collection, response.entries.reverse(), response.pagination)),
error => dispatch(entriesFailed(collection, error))
);
};