mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 17:01:00 +03:00
Fix 'label' undefined errors for sequential agents (#3585)
Fix 'label' undefined errors Commit adds some optional chaining around 2 reads of 'label' property.
This commit is contained in:
@@ -218,7 +218,7 @@ export const utilBuildChatflow = async (req: Request, isInternal: boolean = fals
|
||||
|
||||
/*** Get session ID ***/
|
||||
const memoryNode = findMemoryNode(nodes, edges)
|
||||
const memoryType = memoryNode?.data.label
|
||||
const memoryType = memoryNode?.data?.label
|
||||
let sessionId = getMemorySessionId(memoryNode, incomingInput, chatId, isInternal)
|
||||
|
||||
/*** Get Ending Node with Directed Graph ***/
|
||||
|
||||
Reference in New Issue
Block a user