Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit683c869

Browse files
committed
fix no next step bug
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parentad97c63 commit683c869

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎web-app/src/services/state/actions/context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ const contextActions: ActionFunctionMap<T.MachineContext, T.MachineEvent> = {
7979

8080
constnextPosition:T.Position={
8181
levelId:level.id,
82-
stepId:level.steps[0].id,
82+
stepId:level.steps.length ?level.steps[0].id :null,
8383
}
8484

8585
returnnextPosition
@@ -163,7 +163,7 @@ const contextActions: ActionFunctionMap<T.MachineContext, T.MachineEvent> = {
163163
constnextLevel=levels[levelIndex+1]
164164
constnextPosition={
165165
levelId:nextLevel.id,
166-
stepId:nextLevel.steps[0].id,
166+
stepId:nextLevel.steps.length ?nextLevel.steps[0].id :null,
167167
}
168168
return{type:'NEXT_LEVEL',payload:nextPosition}
169169
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp