Fix error when deleting the trigger of an activated workflow version (#9606)
Fixes https://discord.com/channels/1130383047699738754/1328375628512100412
This commit is contained in:
committed by
GitHub
parent
b815de3e26
commit
c9b91dcfaa
@ -31,7 +31,7 @@ export const useDeleteStep = ({
|
||||
const workflowVersion = await getUpdatableWorkflowVersion(workflow);
|
||||
if (stepId === TRIGGER_STEP_ID) {
|
||||
await updateOneWorkflowVersion({
|
||||
idToUpdate: workflow.currentVersion.id,
|
||||
idToUpdate: workflowVersion.id,
|
||||
updateOneRecordInput: {
|
||||
trigger: null,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user