From 467cd2c4c11d85b7fd0150ad11ba77b0f9c10c72 Mon Sep 17 00:00:00 2001 From: twwu Date: Mon, 7 Jul 2025 16:34:43 +0800 Subject: [PATCH] fix: Update onlineDrive file check to use selectedFileList for better validation --- .../datasets/documents/create-from-pipeline/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/datasets/documents/create-from-pipeline/index.tsx b/web/app/components/datasets/documents/create-from-pipeline/index.tsx index 9d1f37a486..8db4014475 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/index.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/index.tsx @@ -103,9 +103,9 @@ const CreateFormPipeline = () => { if (datasourceType === DatasourceType.websiteCrawl) return isShowVectorSpaceFull || !websitePages.length if (datasourceType === DatasourceType.onlineDrive) - return isShowVectorSpaceFull || !onlineDriveFileList.length + return isShowVectorSpaceFull || !selectedFileList.length return false - }, [datasource, datasourceType, isShowVectorSpaceFull, fileList.length, allFileLoaded, onlineDocuments.length, websitePages.length, onlineDriveFileList.length]) + }, [datasource, datasourceType, isShowVectorSpaceFull, fileList.length, allFileLoaded, onlineDocuments.length, websitePages.length, selectedFileList.length]) const { mutateAsync: runPublishedPipeline, isIdle, isPending } = useRunPublishedPipeline()