chore(core): cleanup

This commit is contained in:
braks
2023-05-17 19:56:07 +02:00
committed by Braks
parent f720f27360
commit c52396b43b

View File

@@ -81,7 +81,7 @@ export function createGraphNodes(
const graphNodes = nodes.reduce((nextNodes, node) => {
// make sure we don't try to add invalid nodes
if (!node || typeof node !== 'object' || !isNode(node)) {
if (!isNode(node)) {
onError(new VueFlowError(ErrorCode.NODE_INVALID))
return nextNodes
}