Skip to content

Commit 6f4bbe6

Browse files
committed
address comment
1 parent f12e4d5 commit 6f4bbe6

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

  • apps/sim/app/workspace/[workspaceId]/home/hooks

apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2624,16 +2624,7 @@ export function useChat(
26242624
status: 'pending',
26252625
updatedAt: new Date().toISOString(),
26262626
}
2627-
const shouldApplyStartSession = shouldReplaceSession(prevSession, nextSession)
26282627
applyPreviewSessionUpdate(nextSession)
2629-
if (
2630-
shouldApplyStartSession &&
2631-
nextSession.fileId &&
2632-
hasRenderableFilePreviewContent(nextSession) &&
2633-
shouldAutoActivatePreviewSession(nextSession)
2634-
) {
2635-
setActiveResourceId(nextSession.fileId)
2636-
}
26372628
break
26382629
}
26392630

0 commit comments

Comments
 (0)