From ed4c3373ddb426458f6e6b1b05a47e9c4d5c849b Mon Sep 17 00:00:00 2001 From: waleed Date: Fri, 3 Apr 2026 01:12:46 -0700 Subject: [PATCH] fix(analytics): add chatId to handleSubmit deps to prevent stale closure --- apps/sim/app/workspace/[workspaceId]/home/home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/sim/app/workspace/[workspaceId]/home/home.tsx b/apps/sim/app/workspace/[workspaceId]/home/home.tsx index 5e98fc6e51..974369a2ec 100644 --- a/apps/sim/app/workspace/[workspaceId]/home/home.tsx +++ b/apps/sim/app/workspace/[workspaceId]/home/home.tsx @@ -224,7 +224,7 @@ export function Home({ chatId }: HomeProps = {}) { sendMessage(trimmed || 'Analyze the attached file(s).', fileAttachments, contexts) }, - [sendMessage] + [sendMessage, chatId] ) useEffect(() => {