mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-08 06:19:05 +08:00
fix bug: uniqueIds is null when uploaded directory
This commit is contained in:
parent
3b194d7b1a
commit
dab9787d8c
@ -108,7 +108,9 @@ class KnowledgeService {
|
|||||||
|
|
||||||
const loaderResults = await Promise.allSettled(loaderPromises)
|
const loaderResults = await Promise.allSettled(loaderPromises)
|
||||||
// @ts-ignore uniqueId
|
// @ts-ignore uniqueId
|
||||||
const uniqueIds = loaderResults.filter((result) => result.status === 'fulfilled').map((result) => result.uniqueId)
|
const uniqueIds = loaderResults
|
||||||
|
.filter((result) => result.status === 'fulfilled')
|
||||||
|
.map((result) => result.value.uniqueId)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
entriesAdded: loaderResults.length,
|
entriesAdded: loaderResults.length,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user