From 9cb4f58dd04885ade5f3d545e3cacd2316cd096c Mon Sep 17 00:00:00 2001 From: Junyan Qin Date: Fri, 9 May 2025 11:34:02 +0800 Subject: [PATCH] fix: linter error --- .../components/pipeline-form/PipelineFormComponent.tsx | 1 + web/src/app/infra/http/HttpClient.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx b/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx index 4bd5b34b..2e578007 100644 --- a/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx +++ b/web/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx @@ -135,6 +135,7 @@ export default function PipelineFormComponent({ function handleCreate(values: FormValues) { console.log('handleCreate', values); const pipeline: Pipeline = { + config: {}, description: values.basic.description, name: values.basic.name, }; diff --git a/web/src/app/infra/http/HttpClient.ts b/web/src/app/infra/http/HttpClient.ts index cf1f1546..18944511 100644 --- a/web/src/app/infra/http/HttpClient.ts +++ b/web/src/app/infra/http/HttpClient.ts @@ -263,7 +263,9 @@ class HttpClient { return this.get(`/api/v1/pipelines/${uuid}`); } - public createPipeline(pipeline: Pipeline): Promise { + public createPipeline(pipeline: Pipeline): Promise<{ + uuid: string; + }> { return this.post('/api/v1/pipelines', pipeline); }