diff --git a/src/frontend/src/controllers/API/index.ts b/src/frontend/src/controllers/API/index.ts index 2d4f65148..4576ec749 100644 --- a/src/frontend/src/controllers/API/index.ts +++ b/src/frontend/src/controllers/API/index.ts @@ -862,7 +862,7 @@ export async function getVerticesOrder( // if nodeId is not provided, the API will return all vertices const config = {}; if (nodeId) { - config["params"] = { component_id: nodeId }; + config["params"] = { stop_component_id: nodeId }; } return await api.get(`${BASE_URL_API}build/${flowId}/vertices`, config); } @@ -872,6 +872,7 @@ export async function postBuildVertex( vertexId: string, input_value: string ): Promise> { + // input_value is optional and is a query parameter return await api.post( `${BASE_URL_API}build/${flowId}/vertices/${vertexId}`, input_value ? { inputs: { input_value: input_value } } : undefined diff --git a/src/frontend/src/utils/buildUtils.ts b/src/frontend/src/utils/buildUtils.ts index 8bfced23d..26d1fcd14 100644 --- a/src/frontend/src/utils/buildUtils.ts +++ b/src/frontend/src/utils/buildUtils.ts @@ -168,6 +168,7 @@ export async function buildVertices({ buildResults.push(false); return; } + // Build the vertex await buildVertex({ flowId,