fix api call
This commit is contained in:
parent
48ec18b6e5
commit
171ebb2321
1 changed files with 7 additions and 5 deletions
|
|
@ -918,12 +918,14 @@ export async function getVerticesOrder(
|
||||||
} else if (startNodeId) {
|
} else if (startNodeId) {
|
||||||
config["params"] = { start_component_id: startNodeId };
|
config["params"] = { start_component_id: startNodeId };
|
||||||
}
|
}
|
||||||
const data = {}
|
const data = {
|
||||||
if(nodes && Edges){
|
data:{}
|
||||||
data["nodes"] = nodes
|
|
||||||
data["edges"] = Edges
|
|
||||||
}
|
}
|
||||||
return await api.post(`${BASE_URL_API}build/${flowId}/vertices`,{data}, config);
|
if(nodes && Edges){
|
||||||
|
data["data"]["nodes"] = nodes
|
||||||
|
data["data"]["edges"] = Edges
|
||||||
|
}
|
||||||
|
return await api.post(`${BASE_URL_API}build/${flowId}/vertices`,data, config);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function postBuildVertex(
|
export async function postBuildVertex(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue