fix(pipelines): 修复无法保存修改的问题。
This commit is contained in:
parent
45844817c0
commit
46f50b6deb
@ -18,6 +18,7 @@ import {
|
|||||||
FIND_PIPELINE,
|
FIND_PIPELINE,
|
||||||
LIST_PIPELINES
|
LIST_PIPELINES
|
||||||
} from '../../components/pipelines/pipeline-list.constants';
|
} from '../../components/pipelines/pipeline-list.constants';
|
||||||
|
import { omit } from 'ramda';
|
||||||
|
|
||||||
const defaultWorkUnitMetadata: WorkUnitMetadata = {
|
const defaultWorkUnitMetadata: WorkUnitMetadata = {
|
||||||
version: 1,
|
version: 1,
|
||||||
@ -159,7 +160,7 @@ export const PipelineEditor = ({ projectId, id }: Props) => {
|
|||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
await modifyPipeline({
|
await modifyPipeline({
|
||||||
variables: { input: values, id }
|
variables: { input: omit(['id'], values), id }
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
close();
|
close();
|
||||||
|
Loading…
Reference in New Issue
Block a user