Skip to content

Commit

Permalink
🐛 Remove typebot variable reset in resetSessionState
Browse files Browse the repository at this point in the history
Closes #1646
  • Loading branch information
baptisteArno committed Sep 25, 2024
1 parent 47fe4e4 commit 34fe006
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions packages/bot-engine/src/resetSessionState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
})),
},
})),
});

0 comments on commit 34fe006

Please sign in to comment.