fix: extract results array from search_smart API response
This commit is contained in:
@@ -569,7 +569,7 @@ async function sendMessage() {
|
|||||||
} else {
|
} else {
|
||||||
const results = await apiCall('search_smart', { query: q, limit: 20 })
|
const results = await apiCall('search_smart', { query: q, limit: 20 })
|
||||||
if (searchSeq !== seq) return
|
if (searchSeq !== seq) return
|
||||||
messages.value[msgIdx].results = results as any[]
|
messages.value[msgIdx].results = (results?.results || results || []) as any[]
|
||||||
messages.value[msgIdx].loading = false
|
messages.value[msgIdx].loading = false
|
||||||
}
|
}
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user