fix(eslint): resolve TypeScript imports require lint rules and prefer-const warnings
Some checks failed
CI / Lint, Unit Tests & Build (push) Failing after 42s
CI / Deploy production (on server) (push) Has been skipped

This commit is contained in:
Antigravity
2026-05-28 21:18:51 +00:00
parent a5342eba4b
commit e3369e03b5
4 changed files with 9 additions and 4 deletions

View File

@@ -141,8 +141,8 @@ export function NotesStructuredTable({
return
}
let fallbackRes = await fetch(`/api/notes?search=${encodeURIComponent(q)}&limit=5`)
let fallbackJson = await fallbackRes.json()
const fallbackRes = await fetch(`/api/notes?search=${encodeURIComponent(q)}&limit=5`)
const fallbackJson = await fallbackRes.json()
let filteredNotes = (fallbackJson.success && Array.isArray(fallbackJson.data))
? fallbackJson.data.filter((n: any) => n.id !== noteId)