debug(chat): adiciona logs no clique da lista de sessoes
Logs para debugar problema de clique não funcionando na lista de sessões do desktop. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
973e3496e2
commit
ca59b6ed92
2 changed files with 10 additions and 2 deletions
|
|
@ -100,10 +100,13 @@ export function ChatHubWidget() {
|
|||
}, [])
|
||||
|
||||
const handleSelectSession = async (ticketId: string, ticketRef: number) => {
|
||||
console.log("[ChatHub] Selecionando sessao:", { ticketId, ticketRef })
|
||||
try {
|
||||
await invoke("open_chat_window", { ticketId, ticketRef })
|
||||
console.log("[ChatHub] Janela aberta com sucesso")
|
||||
} catch (err) {
|
||||
console.error("Erro ao abrir janela de chat:", err)
|
||||
console.error("[ChatHub] Erro ao abrir janela de chat:", err)
|
||||
alert(`Erro ao abrir chat: ${err}`)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue