Skip to content

Commit ad68624

Browse files
committed
fix: remove duplicate handleCopilotStopGeneration from rebase
1 parent dbce404 commit ad68624

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

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

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -428,14 +428,6 @@ export const Panel = memo(function Panel({ workspaceId: propWorkspaceId }: Panel
428428
copilotStopGeneration()
429429
}, [copilotStopGeneration, getCopilotCurrentRequestId, workspaceId])
430430

431-
const handleCopilotStopGeneration = useCallback(() => {
432-
captureEvent(posthogRef.current, 'task_generation_aborted', {
433-
workspace_id: workspaceId,
434-
view: 'copilot',
435-
})
436-
copilotStopGeneration()
437-
}, [copilotStopGeneration, workspaceId])
438-
439431
const handleCopilotSubmit = useCallback(
440432
(text: string, fileAttachments?: FileAttachmentForApi[], contexts?: ChatContext[]) => {
441433
const trimmed = text.trim()

0 commit comments

Comments
 (0)