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 <noreply@anthropic.com>
This commit is contained in:
Molecule AI App & Docs Lead 2026-04-24 03:11:36 +00:00
parent 8fb5ec0340
commit 3715c06e0b

View File

@ -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) => {