From 4df14a991181ee65f4931748783341c45fa1bfa9 Mon Sep 17 00:00:00 2001 From: ygcedu <937601471@qq.com> Date: Wed, 26 Jun 2024 11:01:22 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=BC=82=E6=AD=A5?= =?UTF-8?q?=E5=87=BD=E6=95=B0=E8=B0=83=E7=94=A8=E7=BC=BA=E5=A4=B1await?= =?UTF-8?q?=E5=85=B3=E9=94=AE=E5=AD=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/frontend/src/controllers/API/flow.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/controllers/API/flow.ts b/src/frontend/src/controllers/API/flow.ts index 998695b97..7bbff0da9 100644 --- a/src/frontend/src/controllers/API/flow.ts +++ b/src/frontend/src/controllers/API/flow.ts @@ -114,7 +114,7 @@ export function getReportFormApi(flow_id): Promise { * @throws Will throw an error if fetching fails. */ export async function getFlowApi(flowId: string): Promise { - return axios.get(`/api/v1/flows/${flowId}`) + return await axios.get(`/api/v1/flows/${flowId}`) } /** @@ -196,7 +196,7 @@ export const createCustomFlowApi = async (params: { export async function updateFlowApi( updatedFlow: FlowType ): Promise { - return axios.patch(`/api/v1/flows/${updatedFlow.id}`, { + return await axios.patch(`/api/v1/flows/${updatedFlow.id}`, { name: updatedFlow.name, data: updatedFlow.data, description: updatedFlow.description,