diff --git a/api/services/workflow_service.py b/api/services/workflow_service.py index 39bb836172..712a38d6f6 100644 --- a/api/services/workflow_service.py +++ b/api/services/workflow_service.py @@ -262,6 +262,8 @@ class WorkflowService: conversation_variables=draft_workflow.conversation_variables, marked_name=marked_name, marked_comment=marked_comment, + rag_pipeline_variables=draft_workflow.rag_pipeline_variables, + features=draft_workflow.features, ) # commit db session changes diff --git a/api/tests/integration_tests/services/test_workflow_draft_variable_service.py b/api/tests/integration_tests/services/test_workflow_draft_variable_service.py index 30cd2e60cb..9d6d2cc33d 100644 --- a/api/tests/integration_tests/services/test_workflow_draft_variable_service.py +++ b/api/tests/integration_tests/services/test_workflow_draft_variable_service.py @@ -377,6 +377,7 @@ class TestWorkflowDraftVariableServiceResetVariable(unittest.TestCase): created_by=str(uuid.uuid4()), environment_variables=[], conversation_variables=conversation_vars, + rag_pipeline_variables=[], ) return workflow