diff --git a/SAS/TMSS/frontend/tmss_webapp/src/routes/Timeline/WeekView.js b/SAS/TMSS/frontend/tmss_webapp/src/routes/Timeline/WeekView.js index 550689667c3db160476b0ecd8b877460d7e4ee37..3ef6c35fc15b620be4147dabc5d3c912fd5f9cb7 100644 --- a/SAS/TMSS/frontend/tmss_webapp/src/routes/Timeline/WeekView.js +++ b/SAS/TMSS/frontend/tmss_webapp/src/routes/Timeline/WeekView.js @@ -296,7 +296,7 @@ export default function WeekView() { .catch(e => console.error("Couldn't retrieve scheduling unit details for id: ", id, e)); } - function fetchBlueprintAndAddToTimeline(id) { + function fetchReservationAndAddToTimeline(id) { const shouldFetchReservations = getStore(UIConstants.STORE_KEY_TIMELINE).reservationsToggle; if (shouldFetchReservations) { ReservationService.getTimelineReservations(undefined, undefined, id) // todo: check time @@ -306,6 +306,7 @@ export default function WeekView() { reservations: prevData.reservations.concat(response) })); }); + .catch(e => console.error("Couldn't retrieve reservation details for id: ", id, e)); } }