diff --git a/packages/cli/src/workflows/workflows.services.ts b/packages/cli/src/workflows/workflows.services.ts index 601f34807dd5e..1dd4c1b1c7e9f 100644 --- a/packages/cli/src/workflows/workflows.services.ts +++ b/packages/cli/src/workflows/workflows.services.ts @@ -332,7 +332,11 @@ export class WorkflowsService { ); } catch (error) { // If workflow could not be activated set it again to inactive - await Db.collections.Workflow.update(workflowId, { active: false }); + // and revert the versionId change so UI remains consistent + await Db.collections.Workflow.update(workflowId, { + active: false, + versionId: shared.workflow.versionId, + }); // Also set it in the returned data updatedWorkflow.active = false;