feat(engine): ✨ Add {{state}} to body to get form state
This commit is contained in:
@ -62,6 +62,9 @@ export const PreviewDrawer = () => {
|
||||
if (event.data.typebotInfo) {
|
||||
toast({ description: event.data.typebotInfo })
|
||||
}
|
||||
if (event.data.typebotError) {
|
||||
toast({ description: event.data.typebotError, status: 'error' })
|
||||
}
|
||||
}
|
||||
window.addEventListener('message', onMessageFromBot)
|
||||
return () => {
|
||||
|
Reference in New Issue
Block a user