Commit 8c32aa3e authored by Joel's avatar Joel

feat: handle step two file params

parent 08d64cc2
...@@ -137,7 +137,7 @@ const DatasetUpdateForm = ({ datasetId }: DatasetUpdateFormProps) => { ...@@ -137,7 +137,7 @@ const DatasetUpdateForm = ({ datasetId }: DatasetUpdateFormProps) => {
indexingType={detail?.indexing_technique || ''} indexingType={detail?.indexing_technique || ''}
datasetId={datasetId} datasetId={datasetId}
dataSourceType={dataSourceType} dataSourceType={dataSourceType}
files={fileList} files={fileList.map(file => file.file)}
notionPages={notionPages} notionPages={notionPages}
onStepChange={changeStep} onStepChange={changeStep}
updateIndexingTypeCache={updateIndexingTypeCache} updateIndexingTypeCache={updateIndexingTypeCache}
......
...@@ -90,7 +90,7 @@ const StepOne = ({ ...@@ -90,7 +90,7 @@ const StepOne = ({
const nextDisabled = useMemo(() => { const nextDisabled = useMemo(() => {
if (!files.length) if (!files.length)
return true return true
if (files.some(file => file.progress !== 100)) if (files.some(file => !file.file.id))
return true return true
return false return false
}, [files]) }, [files])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment