From b86ca31cd460851e1fa3c75f59ff3591a12c8a1b Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Fri, 16 Feb 2024 14:36:08 -0300 Subject: [PATCH] Set vertex state to building --- src/frontend/src/utils/buildUtils.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/frontend/src/utils/buildUtils.ts b/src/frontend/src/utils/buildUtils.ts index bf4b12ee4..d7cdf5538 100644 --- a/src/frontend/src/utils/buildUtils.ts +++ b/src/frontend/src/utils/buildUtils.ts @@ -39,12 +39,15 @@ export async function buildVertices({ } else { vertices = verticesOrder; } - console.log("Vertices: ", vertices); + + // Set each vertex state to building + const buildResults: Array = []; for (let i = 0; i < vertices.length; i += 1) { await Promise.all( vertices[i].map(async (id) => { try { + // Set vertex state to building const buildRes = await postBuildVertex(flowId, id); const buildData: VertexBuildTypeAPI = buildRes.data; if (onBuildUpdate) {