2
0

🚑 (typebotLink) Correctly pass back existing values from parent bot

This commit is contained in:
Baptiste Arnaud
2023-09-08 07:40:31 +02:00
parent cdd3e19755
commit bea3332c32

View File

@ -34,9 +34,10 @@ export const getNextGroup =
variables: state.typebotsQueue[1].typebot.variables.map(
(variable) => ({
...variable,
value: state.typebotsQueue[0].answers.find(
(answer) => answer.key === variable.name
)?.value,
value:
state.typebotsQueue[0].answers.find(
(answer) => answer.key === variable.name
)?.value ?? variable.value,
})
),
}