fix chain value bug
This commit is contained in:
parent
a6a0974a6e
commit
cd8a5b96eb
|
|
@ -230,7 +230,7 @@ export class App {
|
|||
const endingNodeData = nodes.find((nd) => nd.id === endingNodeId)?.data
|
||||
if (!endingNodeData) return res.status(500).send(`Ending node must be either a Chain or Agent`)
|
||||
|
||||
if (!Object.values(endingNodeData.outputs ?? {}).includes(endingNodeData.name)) {
|
||||
if (endingNodeData.outputs && !Object.values(endingNodeData.outputs).includes(endingNodeData.name)) {
|
||||
return res
|
||||
.status(500)
|
||||
.send(
|
||||
|
|
|
|||
Loading…
Reference in New Issue