Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unused room_id from matching-events request
  • Loading branch information
ThiefMaster committed May 16, 2019
1 parent 4666a78 commit 701f2c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -120,7 +120,7 @@ class BookRoomModal extends React.Component {
} = this.props;
fetchAvailability(room, data);
if (!link) {
fetchRelatedEvents(room, data);
fetchRelatedEvents(data);
}
}

Expand Down
4 changes: 2 additions & 2 deletions indico/modules/rb/client/js/modules/bookRoom/actions.js
Expand Up @@ -235,11 +235,11 @@ export function initUnavailableTimeline(selectedDate, mode) {
return {type: INIT_UNAVAILABLE_TIMELINE, selectedDate, mode};
}

export function fetchRelatedEvents(room, filters) {
export function fetchRelatedEvents(filters) {
const {dates, timeSlot, recurrence} = filters;
const params = preProcessParameters({dates, timeSlot, recurrence}, ajaxFilterRules);
return ajaxAction(
() => indicoAxios.get(fetchEventsURL({room_id: room.id}), {params}),
() => indicoAxios.get(fetchEventsURL(), {params}),
FETCH_RELATED_EVENTS_REQUEST,
[RELATED_EVENTS_RECEIVED, FETCH_RELATED_EVENTS_SUCCESS],
FETCH_RELATED_EVENTS_ERROR
Expand Down

0 comments on commit 701f2c1

Please sign in to comment.