Set vertex state to building

This commit is contained in:
Gabriel Luiz Freitas Almeida 2024-02-16 14:36:08 -03:00
commit b86ca31cd4

View file

@ -39,12 +39,15 @@ export async function buildVertices({
} else { } else {
vertices = verticesOrder; vertices = verticesOrder;
} }
console.log("Vertices: ", vertices);
// Set each vertex state to building
const buildResults: Array<boolean> = []; const buildResults: Array<boolean> = [];
for (let i = 0; i < vertices.length; i += 1) { for (let i = 0; i < vertices.length; i += 1) {
await Promise.all( await Promise.all(
vertices[i].map(async (id) => { vertices[i].map(async (id) => {
try { try {
// Set vertex state to building
const buildRes = await postBuildVertex(flowId, id); const buildRes = await postBuildVertex(flowId, id);
const buildData: VertexBuildTypeAPI = buildRes.data; const buildData: VertexBuildTypeAPI = buildRes.data;
if (onBuildUpdate) { if (onBuildUpdate) {