修复构建错误

This commit is contained in:
xintaofei
2026-03-15 23:26:20 +08:00
parent 176785ca6e
commit c86ee488c4
2 changed files with 3 additions and 5 deletions

View File

@@ -2302,7 +2302,7 @@ export function FileTreeTab() {
<DialogContent
onOpenAutoFocus={(e) => {
e.preventDefault()
const input = e.currentTarget.querySelector("input")
const input = (e.currentTarget as HTMLElement | null)?.querySelector("input")
if (input) requestAnimationFrame(() => input.focus())
}}
>
@@ -2369,7 +2369,7 @@ export function FileTreeTab() {
<DialogContent
onOpenAutoFocus={(e) => {
e.preventDefault()
const input = e.currentTarget.querySelector("input")
const input = (e.currentTarget as HTMLElement | null)?.querySelector("input")
if (input) requestAnimationFrame(() => input.focus())
}}
>