Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "genui-widget",
"version": "0.6.1",
"version": "0.6.2",
"type": "module",
"description": "An embeddable chat widget that lets your AI chatbots render rich, interactive UI like buttons, forms, charts, cards and more instead of plain text. Works out of the box with LangGraph/LangChain and n8n.",
"main": "./dist/genui-widget.umd.js",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,10 @@ export function createChat(config: ChatConfig): ChatInstance {
},

destroy: () => {
if (!container.isConnected) return; // Already destroyed
root.unmount();
container.remove();
delete window.__THESYS_CHAT__;
},

getSessionId: () => currentSessionId || "",
Expand Down