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

Fix/workflow#8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 7 commits intomasterfromfix/workflow
Jun 14, 2019
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
fix guard on final step
  • Loading branch information
@ShMcK
ShMcK committedJun 14, 2019
commite7c567038083d305455d1c23248402388324b1d3
11 changes: 7 additions & 4 deletionssrc/state/guards/index.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -2,11 +2,14 @@ import * as CR from 'typings'

export default {
hasNextStep: (context: CR.MachineContext): boolean => {
const { data, position } = context
const { data, position, progress } = context
const steps = data.stages[position.stageId].stepList
const hasNext = steps[steps.length - 1] !== position.stepId
console.log('GUARD: hasNextStep', hasNext)
return hasNext
// isn't final step yet
if (steps[steps.length - 1] !== position.stepId) {
return true
}
// final step is not yet complete
return !progress.steps[position.stepId]
},
hasNextStage: (context: CR.MachineContext): boolean => {
const { data, position } = context
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp