Skip to content

Commit 33c29cc

Browse files
waleedlatif1claude
andcommitted
fix(home): remove duplicate handleStopGeneration declaration
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ca27adc commit 33c29cc

File tree

1 file changed

+0
-8
lines changed
  • apps/sim/app/workspace/[workspaceId]/home

1 file changed

+0
-8
lines changed

apps/sim/app/workspace/[workspaceId]/home/home.tsx

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,14 +229,6 @@ export function Home({ chatId }: HomeProps = {}) {
229229
void stopGeneration().catch(() => {})
230230
}, [stopGeneration, workspaceId])
231231

232-
const handleStopGeneration = useCallback(() => {
233-
captureEvent(posthogRef.current, 'task_generation_aborted', {
234-
workspace_id: workspaceId,
235-
view: 'mothership',
236-
})
237-
stopGeneration()
238-
}, [stopGeneration, workspaceId])
239-
240232
const handleSubmit = useCallback(
241233
(text: string, fileAttachments?: FileAttachmentForApi[], contexts?: ChatContext[]) => {
242234
const trimmed = text.trim()

0 commit comments

Comments
 (0)