mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 23:01:09 +03:00
fix custom function ending node
This commit is contained in:
@@ -473,7 +473,7 @@ export class App {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
isStreaming = isFlowValidForStream(nodes, endingNodeData)
|
isStreaming = isEndingNode ? false : isFlowValidForStream(nodes, endingNodeData)
|
||||||
}
|
}
|
||||||
|
|
||||||
const obj = { isStreaming }
|
const obj = { isStreaming }
|
||||||
@@ -1676,7 +1676,11 @@ export class App {
|
|||||||
return res.status(500).send(`Ending node must be either a Chain or Agent`)
|
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.keys(endingNodeData.outputs).length &&
|
||||||
|
!Object.values(endingNodeData.outputs ?? {}).includes(endingNodeData.name)
|
||||||
|
) {
|
||||||
return res
|
return res
|
||||||
.status(500)
|
.status(500)
|
||||||
.send(
|
.send(
|
||||||
|
|||||||
Reference in New Issue
Block a user