Set vertex state to building
This commit is contained in:
parent
bf115a2a46
commit
b86ca31cd4
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue