fix(desktop): return null for query data
This commit is contained in:
parent
7235a6d354
commit
e11bac5d0a
|
|
@ -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({
|
||||
|
|
|
|||
Loading…
Reference in New Issue