e-lado
Version:
[](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [](https://gemnasium.com/sharetribe/shar
15 lines (12 loc) • 372 B
JavaScript
import { List } from 'immutable';
import * as actionTypes from '../constants/SearchPageConstants';
const updateCurrentPage = function updateCurrentPage({ listings = new List() } = {}) {
return {
type: actionTypes.CURRENT_PAGE_UPDATE,
payload: {
currentPage: listings.map((l) => l.get(':id')),
listings,
},
};
};
export { updateCurrentPage };