feat: handle partial upload success in document batch upload (#16438)

This commit is contained in:
euvre
2026-06-29 13:06:14 +08:00
committed by GitHub
parent d56c17b1e6
commit a339e8a579
2 changed files with 21 additions and 5 deletions

View File

@@ -47,7 +47,12 @@ export const useHandleUploadDocument = () => {
return;
}
if (isSuccess && parseOnCreation) {
// Trigger parsing for both full and partial success when parseOnCreation is enabled
if (
(isSuccess || isPartialSuccess) &&
parseOnCreation &&
ret.data?.length > 0
) {
runDocumentByIds({
documentIds: ret.data.map((x: any) => x.id),
run: 1,