mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 15:38:00 -05:00
fix(chat): fix download & clear popover staying open after pressing in floating chat (#2192)
This commit is contained in:
@@ -856,8 +856,7 @@ export function Chat() {
|
||||
>
|
||||
<PopoverScrollArea>
|
||||
<PopoverItem
|
||||
onClick={(e) => {
|
||||
e.stopPropagation()
|
||||
onClick={() => {
|
||||
if (activeWorkflowId) exportChatCSV(activeWorkflowId)
|
||||
setMoreMenuOpen(false)
|
||||
}}
|
||||
@@ -867,8 +866,7 @@ export function Chat() {
|
||||
<span>Download</span>
|
||||
</PopoverItem>
|
||||
<PopoverItem
|
||||
onClick={(e) => {
|
||||
e.stopPropagation()
|
||||
onClick={() => {
|
||||
if (activeWorkflowId) clearChat(activeWorkflowId)
|
||||
setMoreMenuOpen(false)
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user