fix(eslint): resolve TypeScript imports require lint rules and prefer-const warnings
This commit is contained in:
@@ -420,8 +420,8 @@ export function StructuredViewBlockEmbed({
|
||||
setEchoLoading(false)
|
||||
return
|
||||
}
|
||||
let res = await fetch(`/api/notes?search=${encodeURIComponent(q)}&limit=5`)
|
||||
let json = await res.json()
|
||||
const res = await fetch(`/api/notes?search=${encodeURIComponent(q)}&limit=5`)
|
||||
const json = await res.json()
|
||||
|
||||
let data = (json.success && Array.isArray(json.data)) ? json.data : []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user