Update API configuration and add optional input_value parameter

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-03-03 18:55:48 -03:00
commit 33cf2ae5ae
2 changed files with 3 additions and 1 deletions

View file

@ -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<AxiosResponse<VertexBuildTypeAPI>> {
// 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

View file

@ -168,6 +168,7 @@ export async function buildVertices({
buildResults.push(false);
return;
}
// Build the vertex
await buildVertex({
flowId,