Commit 575dbe6 1 parent c24a6ce commit 575dbe6 Copy full SHA for 575dbe6
File tree 1 file changed +2
-2
lines changed
front/src/modules/pathfinding/components/Pathfinding
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ const TypeAndPath = ({ setDisplayTypeAndPath }: TypeAndPathProps) => {
160
160
161
161
const isInvalid = useMemo ( ( ) => opList . some ( ( op ) => ! op . name && op . trigram !== '' ) , [ opList ] ) ;
162
162
163
- const launchPathFinding = async ( ) => {
163
+ const handleSubmit = async ( ) => {
164
164
if ( infraId && rollingStockId && opList . length > 0 ) {
165
165
const pathSteps = opList
166
166
. filter ( ( op ) => op . trigram !== '' )
@@ -265,7 +265,7 @@ const TypeAndPath = ({ setDisplayTypeAndPath }: TypeAndPathProps) => {
265
265
type = "button"
266
266
aria-label = { tManageTrainSchedule ( 'launchPathFinding' ) }
267
267
title = { tManageTrainSchedule ( 'launchPathFinding' ) }
268
- onClick = { launchPathFinding }
268
+ onClick = { handleSubmit }
269
269
disabled = { isInvalid || opList . length < 2 }
270
270
data-testid = "submit-search-by-trigram"
271
271
>
You can’t perform that action at this time.
0 commit comments