Skip to content

Commit ae47086

Browse files
committed
fixup comment pour Paul
1 parent 762a378 commit ae47086

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

front/src/common/Pathfinding/TypeAndPath.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export default function TypeAndPath({ zoomToFeature }: PathfindingProps) {
5757
const infraId = useSelector(getInfraID);
5858
const rollingStockId = useSelector(getRollingStockID);
5959
const [postSearch] = osrdEditoastApi.endpoints.postSearch.useMutation();
60-
const [postPathfinding] = osrdEditoastApi.usePostPathfindingMutation();
60+
const [postPathfinding] = osrdEditoastApi.endpoints.postPathfinding.useMutation();
6161
const { t } = useTranslation('operationalStudies/manageTrainSchedule');
6262

6363
const debouncedInputText = useDebounce(inputText.trimEnd(), 500);
@@ -73,6 +73,8 @@ export default function TypeAndPath({ zoomToFeature }: PathfindingProps) {
7373
(res, trigram) => [...res, ['=', ['trigram'], trigram]],
7474
['or'] as (string | SearchConstraintType)[]
7575
);
76+
// SNCF trigrams come with a yard name, for main station it could be nothing '',
77+
// 'BV' (as Bâtiment Voyageurs) or '00', all are the same signification: this is the main station.
7678
const limitToMainStationConstraint = [
7779
'or',
7880
['=', ['ch'], ''],

0 commit comments

Comments
 (0)