Jon/sky 5969 ensure generate script and script key cross export import boundary (#3484)
This commit is contained in:
@@ -50,6 +50,7 @@ const emptyWorkflowRequest: WorkflowCreateYAMLRequest = {
|
||||
title: "New Workflow",
|
||||
description: "",
|
||||
ai_fallback: true,
|
||||
generate_script: true,
|
||||
workflow_definition: {
|
||||
blocks: [],
|
||||
parameters: [],
|
||||
|
||||
@@ -2130,6 +2130,10 @@ function convert(workflow: WorkflowApiResponse): WorkflowCreateYAMLRequest {
|
||||
blocks: convertBlocksToBlockYAML(workflow.workflow_definition.blocks),
|
||||
},
|
||||
is_saved_task: workflow.is_saved_task,
|
||||
generate_script: workflow.generate_script,
|
||||
cache_key: workflow.cache_key,
|
||||
ai_fallback: workflow.ai_fallback ?? undefined,
|
||||
run_sequentially: workflow.run_sequentially ?? undefined,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user