diff --git a/src/frontend/src/controllers/API/flow.ts b/src/frontend/src/controllers/API/flow.ts index a6415889c..714a0f946 100644 --- a/src/frontend/src/controllers/API/flow.ts +++ b/src/frontend/src/controllers/API/flow.ts @@ -115,7 +115,7 @@ export function getReportFormApi(flow_id): Promise { * @throws Will throw an error if fetching fails. */ export async function getFlowApi(flowId: string, version: string = 'v1'): Promise { - return axios.get(`/api/${version}/flows/${flowId}`) + return await axios.get(`/api/${version}/flows/${flowId}`) } /** @@ -197,7 +197,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,