🐛 (chatNode) Fix default responseMapping item run
This commit is contained in:
@ -50,12 +50,12 @@ export const sendMessage = createAction({
|
||||
.json()
|
||||
|
||||
responseMapping?.forEach((mapping) => {
|
||||
if (!mapping.variableId || !mapping.item) return
|
||||
if (!mapping.variableId) return
|
||||
|
||||
if (mapping.item === 'Message')
|
||||
variables.set(mapping.variableId, res.message)
|
||||
const item = mapping.item ?? 'Message'
|
||||
if (item === 'Message') variables.set(mapping.variableId, res.message)
|
||||
|
||||
if (mapping.item === 'Thread ID')
|
||||
if (item === 'Thread ID')
|
||||
variables.set(mapping.variableId, res.chat_session_id)
|
||||
})
|
||||
},
|
||||
|
Reference in New Issue
Block a user