File tree Expand file tree Collapse file tree
apps/sim/app/workspace/[workspaceId]
w/[workflowId]/components/panel Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -201,14 +201,6 @@ export function Home({ chatId }: HomeProps = {}) {
201201 }
202202 } , [ resources , collapseResource ] )
203203
204- const handleStopGeneration = useCallback ( ( ) => {
205- captureEvent ( posthogRef . current , 'task_generation_aborted' , {
206- workspace_id : workspaceId ,
207- view : 'mothership' ,
208- } )
209- void stopGeneration ( ) . catch ( ( ) => { } )
210- } , [ stopGeneration , workspaceId ] )
211-
212204 const handleStopGeneration = useCallback ( ( ) => {
213205 captureEvent ( posthogRef . current , 'task_generation_aborted' , {
214206 workspace_id : workspaceId ,
Original file line number Diff line number Diff line change @@ -401,14 +401,6 @@ export const Panel = memo(function Panel({ workspaceId: propWorkspaceId }: Panel
401401 copilotStopGeneration ( )
402402 } , [ copilotStopGeneration , workspaceId ] )
403403
404- const handleCopilotStopGeneration = useCallback ( ( ) => {
405- captureEvent ( posthogRef . current , 'task_generation_aborted' , {
406- workspace_id : workspaceId ,
407- view : 'copilot' ,
408- } )
409- copilotStopGeneration ( )
410- } , [ copilotStopGeneration , workspaceId ] )
411-
412404 const handleCopilotSubmit = useCallback (
413405 ( text : string , fileAttachments ?: FileAttachmentForApi [ ] , contexts ?: ChatContext [ ] ) => {
414406 const trimmed = text . trim ( )
You can’t perform that action at this time.
0 commit comments