Skip to content

Commit c89adb2

Browse files
committed
chore(wand): remove unused onGenerationComplete callback
No call site ever passed it, so the branch never ran. The props interface makes the removal compile-time verified.
1 parent fb8337a commit c89adb2

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/hooks/use-wand.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ interface UseWandProps {
111111
onGeneratedContent: (content: string) => void
112112
onStreamChunk?: (chunk: string) => void
113113
onStreamStart?: () => void
114-
onGenerationComplete?: (prompt: string, generatedContent: string) => void
115114
}
116115

117116
export function useWand({
@@ -122,7 +121,6 @@ export function useWand({
122121
onGeneratedContent,
123122
onStreamChunk,
124123
onStreamStart,
125-
onGenerationComplete,
126124
}: UseWandProps) {
127125
const queryClient = useQueryClient()
128126
const { navigateToSettings } = useSettingsNavigation()
@@ -285,10 +283,6 @@ export function useWand({
285283
{ role: 'assistant', content: generatedContent },
286284
])
287285
}
288-
289-
if (onGenerationComplete) {
290-
onGenerationComplete(currentPrompt, generatedContent)
291-
}
292286
}
293287

294288
logger.debug('Wand generation completed', {
@@ -334,7 +328,6 @@ export function useWand({
334328
onGeneratedContent,
335329
onStreamChunk,
336330
onStreamStart,
337-
onGenerationComplete,
338331
queryClient,
339332
contextParams?.tableId,
340333
contextParams?.sandboxId,

0 commit comments

Comments
 (0)