From 46f50b6deb436bdcda9ac3f11b5c9258fb5d56ea Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 21 Mar 2021 18:40:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(pipelines):=20=E4=BF=AE=E5=A4=8D=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BF=9D=E5=AD=98=E4=BF=AE=E6=94=B9=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/routes/pipelines/pipeline-editor.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/pipelines/pipeline-editor.tsx b/src/routes/pipelines/pipeline-editor.tsx index 538ce33..8054c4d 100644 --- a/src/routes/pipelines/pipeline-editor.tsx +++ b/src/routes/pipelines/pipeline-editor.tsx @@ -18,6 +18,7 @@ import { FIND_PIPELINE, LIST_PIPELINES } from '../../components/pipelines/pipeline-list.constants'; +import { omit } from 'ramda'; const defaultWorkUnitMetadata: WorkUnitMetadata = { version: 1, @@ -159,7 +160,7 @@ export const PipelineEditor = ({ projectId, id }: Props) => { }); } else { await modifyPipeline({ - variables: { input: values, id } + variables: { input: omit(['id'], values), id } }); } close();