Refactor buildUtils to use flat() instead of flatMap()
This commit is contained in:
parent
c7ae2a5eae
commit
9966b4a8dc
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ export async function buildVertices({
|
||||||
vertices_layers = verticesOrder;
|
vertices_layers = verticesOrder;
|
||||||
}
|
}
|
||||||
|
|
||||||
const verticesIds = vertices_layers.flatMap((v) => v);
|
const verticesIds = vertices_layers.flat();
|
||||||
useFlowStore.getState().updateBuildStatus(verticesIds, BuildStatus.TO_BUILD);
|
useFlowStore.getState().updateBuildStatus(verticesIds, BuildStatus.TO_BUILD);
|
||||||
useFlowStore.getState().updateVerticesBuild(verticesIds);
|
useFlowStore.getState().updateVerticesBuild(verticesIds);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue