2
0

fix(editor): 🐛 Throttle incoming typebot to avoid overwrite bug

This commit is contained in:
Baptiste Arnaud
2022-05-12 10:04:19 -07:00
parent 22e4873c11
commit 6af47f0277
2 changed files with 2 additions and 12 deletions

View File

@ -92,7 +92,7 @@ const reducer = <T>(state: State<T>, action: Action<T>) => {
// )
return {
past: [...past, present].filter(isDefined),
present: newPresent,
present: { ...newPresent, updatedAt: new Date() },
future: [],
}
}