diff --git a/front/src/modules/pathfinding/utils.ts b/front/src/modules/pathfinding/utils.ts index 0ede09223d5..29613489b36 100644 --- a/front/src/modules/pathfinding/utils.ts +++ b/front/src/modules/pathfinding/utils.ts @@ -124,7 +124,11 @@ export const upsertPathStepsInOPs = (ops: SuggestedOP[], pathSteps: PathStep[]): } } else { updatedOPs = updatedOPs.map((op) => { - if (matchPathStepAndOp(step, op) && op.kp === step.kp) { + if ( + matchPathStepAndOp(step, op) && + op.kp === step.kp && + step.positionOnPath === op.positionOnPath + ) { return { ...op, pathStepId: step.id,