diff --git a/www/js/diary/infinite_scroll_list.js b/www/js/diary/infinite_scroll_list.js index 8919899bf..9f7c9ac2c 100644 --- a/www/js/diary/infinite_scroll_list.js +++ b/www/js/diary/infinite_scroll_list.js @@ -313,9 +313,9 @@ angular.module('emission.main.diary.infscrolllist',['ui-leaflet', }; $scope.data.displayTimelineEntries = [] - $scope.data.displayTrips.forEach((t) => { - const place = t.confirmed_place; - $scope.data.displayTimelineEntries.push(trip); + $scope.data.displayTrips.forEach((cTrip) => { + const place = cTrip.confirmed_place; + $scope.data.displayTimelineEntries.push(cTrip); if ($scope.showPlaces && place) { $scope.data.displayTimelineEntries.push(place); }