2
0

🐛 (typebotLink) Fix variables merging with new values

This commit is contained in:
Baptiste Arnaud
2023-11-16 16:10:22 +01:00
parent eca6d207bf
commit e22bd7dc9b

View File

@ -37,8 +37,8 @@ export const getNextGroup =
.map((variable) => ({ .map((variable) => ({
...variable, ...variable,
value: value:
state.typebotsQueue[0].answers.find( state.typebotsQueue[0].typebot.variables.find(
(answer) => answer.key === variable.name (v) => v.name === variable.name
)?.value ?? variable.value, )?.value ?? variable.value,
})) }))
.concat( .concat(