mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 14:59:27 +08:00
fix bug: uniqueIds is null when uploaded directory
This commit is contained in:
parent
8e19e5a08e
commit
041360825c
@ -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