Skip to content

Commit

Permalink
bugfix: can not add transition if none destination state but conditio…
Browse files Browse the repository at this point in the history
…n expression
  • Loading branch information
blackholll committed Feb 1, 2022
1 parent 638f6b6 commit dce01eb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/pages/Workflow/WorkflowTransition/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,12 @@ class WorkflowTransiton extends Component<any, any> {
onTransitionFinish = async(values) => {
let result = {};
values.source_state_id = Number(values.source_state_id)
values.destination_state_id = Number(values.destination_state_id)
if(values.destination_state_id){
values.destination_state_id = Number(values.destination_state_id)
}
else{
values.destination_state_id = 0
}
if (values.field_require_check == true){
values.field_require_check = 1
} else {
Expand Down

0 comments on commit dce01eb

Please sign in to comment.