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:
Thomas Trompette
2025-04-16 15:30:05 +02:00
committed by GitHub
parent bf704bd1bc
commit 78e10b2da5
10 changed files with 338 additions and 17 deletions
@@ -38,6 +38,8 @@ export const useCreateStep = ({
await createWorkflowVersionStep({
workflowVersionId,
stepType: newStepType,
parentStepId: workflowCreateStepFromParentStepId,
nextStepId: undefined,
})
)?.data?.createWorkflowVersionStep;