Skip to content

Commit ed4c337

Browse files
committed
fix(analytics): add chatId to handleSubmit deps to prevent stale closure
1 parent ace8779 commit ed4c337

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export function Home({ chatId }: HomeProps = {}) {
224224

225225
sendMessage(trimmed || 'Analyze the attached file(s).', fileAttachments, contexts)
226226
},
227-
[sendMessage]
227+
[sendMessage, chatId]
228228
)
229229

230230
useEffect(() => {

0 commit comments

Comments
 (0)