diff --git a/front/src/modules/timesStops/TimesStops.tsx b/front/src/modules/timesStops/TimesStops.tsx index 774860bf8ec..65d2ce32f3e 100644 --- a/front/src/modules/timesStops/TimesStops.tsx +++ b/front/src/modules/timesStops/TimesStops.tsx @@ -63,7 +63,7 @@ const TimesStops = ({ headerRowHeight={headerRowHeight} rowClassName={({ rowData, rowIndex }) => cx({ - activeRow: rowData.isWaypoint, + activeRow: Boolean(rowData.pathStepId), oddRow: (rowIndex + 1) % 2, }) } diff --git a/front/src/modules/timesStops/helpers/utils.ts b/front/src/modules/timesStops/helpers/utils.ts index 90b664a66bd..7435a702463 100644 --- a/front/src/modules/timesStops/helpers/utils.ts +++ b/front/src/modules/timesStops/helpers/utils.ts @@ -37,7 +37,7 @@ const matchPathStepAndOpWithKP = (step: PathStep, op: SuggestedOP) => { }; export const formatSuggestedViasToRowVias = ( - operationalPoints: (SuggestedOP & { isWaypoint?: boolean })[], + operationalPoints: SuggestedOP[], pathSteps: PathStep[], t: TFunction<'timesStops', undefined>, startTime?: Date, @@ -103,7 +103,6 @@ export const formatSuggestedViasToRowVias = ( shortSlipDistance, stopFor, theoreticalMargin, - isWaypoint: op.isWaypoint || pathStep !== undefined, }; }); }; diff --git a/front/src/modules/timesStops/hooks/useOutputTableData.ts b/front/src/modules/timesStops/hooks/useOutputTableData.ts index 450c7d69da5..fdac1e85ec9 100644 --- a/front/src/modules/timesStops/hooks/useOutputTableData.ts +++ b/front/src/modules/timesStops/hooks/useOutputTableData.ts @@ -88,7 +88,6 @@ const useOutputTableData = ( pathStepId: pathStep.id, name: t('waypoint', { id: pathStep.id }), ch: undefined, - isWaypoint: true, arrival, departure, @@ -144,7 +143,6 @@ const useOutputTableData = ( const calculatedArrival = new Date(startDatetime.getTime() + time); return { - isWaypoint: false, opId: op.id, name: op.extensions?.identifier?.name, ch: op.extensions?.sncf?.ch, diff --git a/front/src/modules/timesStops/types.ts b/front/src/modules/timesStops/types.ts index 5f2cab20624..629af7eb7b8 100644 --- a/front/src/modules/timesStops/types.ts +++ b/front/src/modules/timesStops/types.ts @@ -15,7 +15,6 @@ export type TimesStopsRow = { name?: string; ch?: string; trackName?: string; - isWaypoint: boolean; arrival?: TimeExtraDays; // value asked by user departure?: TimeExtraDays; // value asked by user