Skip to content

Commit cc55f72

Browse files
committed
fixup! front: select op with map when add train
1 parent 99d6127 commit cc55f72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

front/src/modules/pathfinding/helpers/getStepLocation.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const getStepLocation = (step: PathItemLocation): PathItemLocation => {
1919
return {
2020
trigram: step.trigram,
2121
secondary_code: step.secondary_code,
22-
track_reference: trackReference,
22+
track_reference: step.track_reference,
2323
};
2424
}
2525
if (step.uic === -1) {
@@ -28,7 +28,7 @@ const getStepLocation = (step: PathItemLocation): PathItemLocation => {
2828
return {
2929
uic: step.uic,
3030
secondary_code: step.secondary_code,
31-
track_reference: trackReference,
31+
track_reference: step.track_reference,
3232
};
3333
};
3434

0 commit comments

Comments
 (0)