Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
front: fix power restrictions reset when editing a train
Add a state value isInitialized to avoid reseting the power restrictions when editing a train. Indeed, the pathfinding was launched by the 2 hooks (with infra and rollingStock), which reset the power restrictions, even when the user was editing a train. Now it won't be the case anymore. Signed-off-by: Clara Ni <[email protected]>
- Loading branch information