2
0

🔊 (openai) Add error log details in web console

This commit is contained in:
Baptiste Arnaud
2023-04-03 17:12:11 +02:00
parent 14abe76691
commit a5d3f83c7f
2 changed files with 17 additions and 8 deletions

View File

@@ -14,7 +14,10 @@ export const WebPreview = () => {
const { showToast } = useToast()
const handleNewLogs = (logs: ChatReply['logs']) => {
logs?.forEach((log) => showToast(log as UseToastOptions))
logs?.forEach((log) => {
showToast(log as UseToastOptions)
console.error(log)
})
}
if (!typebot) return null