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