🐛 Remove typebot variable reset in resetSessionState

Closes #1646
This commit is contained in:
Baptiste Arnaud 2024-09-25 18:04:12 +02:00
parent 47fe4e4199
commit 34fe006515
No known key found for this signature in database

View File

@ -9,12 +9,5 @@ export const resetSessionState = (state: SessionState): SessionState => ({
typebotsQueue: state.typebotsQueue.map((queueItem) => ({
...queueItem,
answers: [],
typebot: {
...queueItem.typebot,
variables: queueItem.typebot.variables.map((variable) => ({
...variable,
value: undefined,
})),
},
})),
});