fix(desktop): return null for query data

This commit is contained in:
Stephen Zhou 2025-06-06 16:37:16 +08:00
parent 7235a6d354
commit e11bac5d0a
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -39,12 +39,12 @@ export const ai = {
? getReadabilityContent()[entryId]?.content
: getEntry(entryId)?.entries.content
if (!content) {
return
return null
}
const text = parseHtml(content).toText()
if (text.length < 100) {
return
return null
}
const res = await apiClient.ai.summary.$get({