fix: Update onlineDrive file check to use selectedFileList for better validation

feat/rag-2
twwu 10 months ago
parent d3ca50626d
commit 467cd2c4c1

@ -103,9 +103,9 @@ const CreateFormPipeline = () => {
if (datasourceType === DatasourceType.websiteCrawl) if (datasourceType === DatasourceType.websiteCrawl)
return isShowVectorSpaceFull || !websitePages.length return isShowVectorSpaceFull || !websitePages.length
if (datasourceType === DatasourceType.onlineDrive) if (datasourceType === DatasourceType.onlineDrive)
return isShowVectorSpaceFull || !onlineDriveFileList.length return isShowVectorSpaceFull || !selectedFileList.length
return false 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() const { mutateAsync: runPublishedPipeline, isIdle, isPending } = useRunPublishedPipeline()

Loading…
Cancel
Save