Skip to content

Commit 5db8398

Browse files
committed
front: drop pathfinding error message bubble
The "pathfindingError" translation needs an "errorMessage" property, so it's not displayed properly. Since the error is already displayed to the user in a different way, we can just drop the bubble. To reproduce: - Select a train in small_infra - Switch to another infra (e.g. France) - Open the "Create new train" modal Signed-off-by: Simon Ser <contact@emersion.fr>
1 parent ebbbbc4 commit 5db8398

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

front/src/modules/pathfinding/hooks/usePathfinding.ts

-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ const usePathfinding = (
8787
launchPathfinding(updatedPathSteps);
8888
} else {
8989
setError(t('missingPathSteps'));
90-
dispatch(setFailure({ name: t('pathfindingError'), message: t('missingPathSteps') }));
9190
}
9291
};
9392

0 commit comments

Comments
 (0)