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 41b83a5169..7ac1d7b092 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/index.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/index.tsx @@ -223,7 +223,7 @@ const CreateFormPipeline = () => { return (
{ {/* Preview */} { currentStep === 1 && ( -
+
{currentFile && } {currentDocuments && } {currentWebsite && } @@ -318,7 +318,7 @@ const CreateFormPipeline = () => { } { currentStep === 2 && ( -
+
file.file)} diff --git a/web/app/components/datasets/documents/create-from-pipeline/preview/chunk-preview.tsx b/web/app/components/datasets/documents/create-from-pipeline/preview/chunk-preview.tsx index 2459b4d18d..a17024efa7 100644 --- a/web/app/components/datasets/documents/create-from-pipeline/preview/chunk-preview.tsx +++ b/web/app/components/datasets/documents/create-from-pipeline/preview/chunk-preview.tsx @@ -122,7 +122,7 @@ const ChunkPreview = ({ className='relative flex h-full w-full shrink-0' mainClassName='space-y-6' > - {currentDocForm === ChunkingMode.qa && estimateData?.qa_preview && ( + {!isPending && currentDocForm === ChunkingMode.qa && estimateData?.qa_preview && ( estimateData?.qa_preview.map((item, index) => ( )) )} - {currentDocForm === ChunkingMode.text && estimateData?.preview && ( + {!isPending && currentDocForm === ChunkingMode.text && estimateData?.preview && ( estimateData?.preview.map((item, index) => ( )) )} - {currentDocForm === ChunkingMode.parentChild && estimateData?.preview && ( + {!isPending && currentDocForm === ChunkingMode.parentChild && estimateData?.preview && ( estimateData?.preview?.map((item, index) => { const indexForLabel = index + 1 // const childChunks = parentChildConfig.chunkForContext === 'full-doc' diff --git a/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx b/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx index 7d919ef1de..a206211830 100644 --- a/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx +++ b/web/app/components/datasets/documents/detail/settings/pipeline-settings/index.tsx @@ -93,7 +93,7 @@ const PipelineSettings = ({
{/* Preview */} -
+
= (props) => { {...rest} ref={ref} className={classNames( - 'flex flex-col w-full h-full overflow-y-auto rounded-tl-xl border-t-[0.5px] border-l-[0.5px] border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5', + 'flex flex-col w-full h-full rounded-tl-xl border-t-[0.5px] border-l-[0.5px] border-components-panel-border bg-background-default-lighter shadow-md shadow-shadow-shadow-5', )} >
{header}
-
+
{children}