fix(pipelines): 修复无法保存修改的问题。

This commit is contained in:
Ivan Li 2021-03-21 18:40:14 +08:00
parent 45844817c0
commit 46f50b6deb

View File

@ -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();