Skip to content

Commit

Permalink
front: fix name updates when moving a train on GET
Browse files Browse the repository at this point in the history
  • Loading branch information
clarani authored and flomonster committed Dec 11, 2023
1 parent c82a596 commit 73d34cd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const getTrainDetailsForAPI = (
): Partial<TrainSchedule> => ({
id: simulationTrain.id,
departure_time: simulationTrain.base.stops[0].time,
train_name: simulationTrain.base.stops[0].name || simulationTrain.name,
train_name: simulationTrain.name,
});
// Nedded to load the namespace for i18n
i18next.loadNamespaces('operationalStudies/manageTrainSchedule');
Expand Down

0 comments on commit 73d34cd

Please sign in to comment.