Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/actions/event-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export const getEvents =
createAction(RECEIVE_EVENTS),
`${window.API_BASE_URL}/api/v1/summits/${currentSummit.id}/events`,
authErrorHandler,
{ order, orderDir, term, summitTZ, filters, extraColumns }
{ order, perPage, orderDir, term, summitTZ, filters, extraColumns }
)(params)(dispatch).then((data) => {
dispatch(stopLoading());
return data.response;
Expand Down
2 changes: 1 addition & 1 deletion src/actions/sponsor-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ export const getSponsorSponsorships =
createAction(RECEIVE_SPONSOR_SPONSORSHIPS),
`${window.API_BASE_URL}/api/v1/summits/${currentSummit.id}/sponsors/${sponsorId}/sponsorships`,
authErrorHandler,
{ order, orderDir }
{ order, orderDir, perPage }
)(params)(dispatch).then(() => {
dispatch(stopLoading());
});
Expand Down
3 changes: 2 additions & 1 deletion src/actions/summit-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ export const loadSummits =
createAction(REQUEST_SUMMITS),
createAction(RECEIVE_SUMMITS),
`${window.API_BASE_URL}/api/v1/summits/all`,
authErrorHandler
authErrorHandler,
{ page, per_page: perPage }
)(params)(dispatch, getState).then(() => {
dispatch(stopLoading());
});
Expand Down
12 changes: 10 additions & 2 deletions src/reducers/events/event-list-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,21 @@ const eventListReducer = (state = DEFAULT_STATE, action) => {
return DEFAULT_STATE;
}
case REQUEST_EVENTS: {
const { order, orderDir, term, summitTZ, filters, extraColumns } =
payload;
const {
order,
orderDir,
perPage,
term,
summitTZ,
filters,
extraColumns
} = payload;

return {
...state,
order,
orderDir,
perPage,
term,
summitTZ,
filters,
Expand Down
13 changes: 9 additions & 4 deletions src/reducers/sponsors/sponsor-reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,12 +495,17 @@ const sponsorReducer = (state = DEFAULT_STATE, action) => {
};
}
case REQUEST_SPONSOR_SPONSORSHIPS: {
const { order, orderDir } = payload;
const { order, orderDir, perPage } = payload;
return {
...state,
sponsorships_collection: {
order,
orderDir
entity: {
...state.entity,
sponsorships_collection: {
...state.entity.sponsorships_collection,
order,
orderDir,
perPage
}
}
};
}
Expand Down
Loading