Skip to content

Commit

Permalink
Revert "accessibility map: check that data is defined for accessibleP…
Browse files Browse the repository at this point in the history
…laces"

This reverts commit ee4cddb.

The data field is now returned as an empty object, so it will always be
defined again.
  • Loading branch information
tahini committed Dec 19, 2024
1 parent ba07323 commit 815fd3e
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,10 @@ export class TransitAccessibilityMapResultByNode {
continue;
}

// FIXME node's 'data' field is not accessible in the frontend
// anymore, at least when retrieved from the node collection, so
// this feature will not work anymore as long as it is calculated in
// the frontend
const nodeAccessiblePlacesByCategory =
nodeAttributes.data?.accessiblePlaces?.walking?.placesByTravelTimeByCategory; // TODO: allow stats for other modes
nodeAttributes.data.accessiblePlaces?.walking?.placesByTravelTimeByCategory; // TODO: allow stats for other modes
const nodeAccessiblePlacesByDetailedCategory =
nodeAttributes.data?.accessiblePlaces?.walking?.placesByTravelTimeByDetailedCategory;
nodeAttributes.data.accessiblePlaces?.walking?.placesByTravelTimeByDetailedCategory;
for (let timeMinutes = avgRemainingTimeMinutes; timeMinutes >= 0; timeMinutes--) {
if (nodeAccessiblePlacesByCategory) {
const accessiblePlacesForTravelTimeByCategory = nodeAccessiblePlacesByCategory[timeMinutes];
Expand Down

0 comments on commit 815fd3e

Please sign in to comment.