Refactor validateNodes to use nodes from useFlowStore
This commit is contained in:
parent
f1faf3c428
commit
12459dbdb9
1 changed files with 2 additions and 1 deletions
|
|
@ -125,7 +125,8 @@ export async function buildVertices({
|
||||||
|
|
||||||
if (validateNodes) {
|
if (validateNodes) {
|
||||||
try {
|
try {
|
||||||
validateNodes(verticesIds);
|
const nodes = useFlowStore.getState().nodes;
|
||||||
|
validateNodes(nodes.map((node) => node.id));
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue