mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 15:00:57 +03:00
fix chain value bug
This commit is contained in:
@@ -230,7 +230,7 @@ export class App {
|
|||||||
const endingNodeData = nodes.find((nd) => nd.id === endingNodeId)?.data
|
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 (!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
|
return res
|
||||||
.status(500)
|
.status(500)
|
||||||
.send(
|
.send(
|
||||||
|
|||||||
Reference in New Issue
Block a user