Commit 8c32aa3e authored by Joel's avatar Joel

feat: handle step two file params

parent 08d64cc2
......@@ -137,7 +137,7 @@ const DatasetUpdateForm = ({ datasetId }: DatasetUpdateFormProps) => {
indexingType={detail?.indexing_technique || ''}
datasetId={datasetId}
dataSourceType={dataSourceType}
files={fileList}
files={fileList.map(file => file.file)}
notionPages={notionPages}
onStepChange={changeStep}
updateIndexingTypeCache={updateIndexingTypeCache}
......
......@@ -90,7 +90,7 @@ const StepOne = ({
const nextDisabled = useMemo(() => {
if (!files.length)
return true
if (files.some(file => file.progress !== 100))
if (files.some(file => !file.file.id))
return true
return false
}, [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