From 3715c06e0ba85974c2f47ac9bbbde097b7d0ee25 Mon Sep 17 00:00:00 2001 From: Molecule AI App & Docs Lead Date: Fri, 24 Apr 2026 03:11:36 +0000 Subject: [PATCH] fix(canvas): remove stale firstInputRef useEffect from AllKeysModal AllKeysModal already handles focus via autoFocus={index === 0} on the first input and a separate title-focus effect. The orphaned useEffect referencing firstInputRef (declared only in ProviderPickerModal) caused a TypeScript build error: "Cannot find name 'firstInputRef'". Co-Authored-By: Claude Sonnet 4.6 --- canvas/src/components/MissingKeysModal.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/canvas/src/components/MissingKeysModal.tsx b/canvas/src/components/MissingKeysModal.tsx index f2a390e4..e6712177 100644 --- a/canvas/src/components/MissingKeysModal.tsx +++ b/canvas/src/components/MissingKeysModal.tsx @@ -402,12 +402,6 @@ function AllKeysModal({ setGlobalError(null); }, [open, missingKeys]); - useEffect(() => { - if (!open) return; - const raf = requestAnimationFrame(() => firstInputRef.current?.focus()); - return () => cancelAnimationFrame(raf); - }, [open]); - useEffect(() => { if (!open) return; const handler = (e: KeyboardEvent) => {