Skip to content

Commit 566cb8c

Browse files
author
Theodore Li
committed
Auto send message to copilot for fix in copilot
1 parent 8329f1c commit 566cb8c

File tree

1 file changed

+2
-2
lines changed
  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel

1 file changed

+2
-2
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -415,11 +415,11 @@ export const Panel = memo(function Panel({ workspaceId: propWorkspaceId }: Panel
415415
const message = (e as CustomEvent<{ message: string }>).detail?.message
416416
if (!message) return
417417
setActiveTab('copilot')
418-
setCopilotEditingInputValue(message)
418+
copilotSendMessage(message)
419419
}
420420
window.addEventListener('mothership-send-message', handler)
421421
return () => window.removeEventListener('mothership-send-message', handler)
422-
}, [setActiveTab])
422+
}, [setActiveTab, copilotSendMessage])
423423

424424
/**
425425
* Handles tab click events

0 commit comments

Comments
 (0)