From 610fcab26e7080bfbe43bd325bfc795195ec3775 Mon Sep 17 00:00:00 2001 From: dengqichen Date: Mon, 13 Jan 2025 15:47:21 +0800 Subject: [PATCH] 1 --- .../Deploy/Deployment/List/components/DeploymentConfigModal.tsx | 1 + frontend/src/pages/Deploy/Deployment/List/index.tsx | 1 - frontend/src/pages/Deploy/Deployment/List/types.ts | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/pages/Deploy/Deployment/List/components/DeploymentConfigModal.tsx b/frontend/src/pages/Deploy/Deployment/List/components/DeploymentConfigModal.tsx index 75f59991..ffc6514e 100644 --- a/frontend/src/pages/Deploy/Deployment/List/components/DeploymentConfigModal.tsx +++ b/frontend/src/pages/Deploy/Deployment/List/components/DeploymentConfigModal.tsx @@ -177,6 +177,7 @@ const DeploymentConfigModal: React.FC = ({ await updateDeploymentConfig({ ...submitData, id: initialValues.id, + formVariablesSchema: initialValues.formVariablesSchema, }); } else { await createDeploymentConfig(submitData); diff --git a/frontend/src/pages/Deploy/Deployment/List/index.tsx b/frontend/src/pages/Deploy/Deployment/List/index.tsx index 17d842d3..90596e58 100644 --- a/frontend/src/pages/Deploy/Deployment/List/index.tsx +++ b/frontend/src/pages/Deploy/Deployment/List/index.tsx @@ -10,7 +10,6 @@ import DeploymentConfigModal from './components/DeploymentConfigModal'; import {ProTable} from '@ant-design/pro-components'; import type {ProColumns, ActionType} from '@ant-design/pro-components'; import {Editor} from '@/components/Editor'; -import type {WorkflowDefinition} from '@/pages/Workflow/Definition/types'; const {Option} = Select; diff --git a/frontend/src/pages/Deploy/Deployment/List/types.ts b/frontend/src/pages/Deploy/Deployment/List/types.ts index d94bf9af..0fd52d35 100644 --- a/frontend/src/pages/Deploy/Deployment/List/types.ts +++ b/frontend/src/pages/Deploy/Deployment/List/types.ts @@ -41,6 +41,7 @@ export interface CreateDeploymentConfigRequest extends BaseRequest { languageType: DevelopmentLanguageTypeEnum; workflowDefinitionId: number; buildVariables: JsonNode; + formVariablesSchema?: JsonNode; enabled: boolean; }