Update next step ids on step update (#11605)
When inserting a new step between step 1 et step 2, then step 1 should have the new step as next step id, add stop having step 2. When deleting a step, we link the parent and next steps together. It may change in the future
This commit is contained in:
@@ -38,6 +38,8 @@ export const useCreateStep = ({
|
||||
await createWorkflowVersionStep({
|
||||
workflowVersionId,
|
||||
stepType: newStepType,
|
||||
parentStepId: workflowCreateStepFromParentStepId,
|
||||
nextStepId: undefined,
|
||||
})
|
||||
)?.data?.createWorkflowVersionStep;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user