Skip to content

Commit

Permalink
Fix the itinerancyStep display on the map
Browse files Browse the repository at this point in the history
  • Loading branch information
dtrucs committed Sep 23, 2024
1 parent 3acdd63 commit c28170d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/pages/details/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -654,10 +654,10 @@ export const DetailsUIWithoutContext: React.FC<Props> = ({ slug, parentId, langu
trekFamily={trekFamily}
trekChildrenGeometries={details.children.reduce<TrekChildGeometry[]>(
(children, currentChild) => {
if (currentChild.childGeometry) {
if (currentChild.childrenGeometries) {
children.push({
...currentChild.childGeometry,
id: `TREK-${currentChild.childGeometry.id}`,
...currentChild.childrenGeometries,
id: `TREK-${currentChild.childrenGeometries.id}`,
});
}
return children;
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/modules/details/interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export interface Bbox {
}

export interface TrekResultWithGeometryChild extends TrekResult {
childGeometry?: TrekChildGeometry;
childrenGeometries?: TrekChildGeometry;
}
export interface RawTrekChildGeometry {
geometry: RawLineStringGeometry3D | RawMultiLineStringGeometry3D | RawPointGeometry3D;
Expand Down

0 comments on commit c28170d

Please sign in to comment.