fix: cannot open in upload

This commit is contained in:
AkaraChen 2024-12-12 16:56:06 +08:00
parent 489015bd9e
commit 939f7f3e06

View File

@ -591,7 +591,9 @@ const StepTwo = ({
activeHeaderClassName='bg-gradient-to-r from-[#EFF0F9] to-[#F9FAFB]' activeHeaderClassName='bg-gradient-to-r from-[#EFF0F9] to-[#F9FAFB]'
description={t('datasetCreation.stepTwo.generalTip')} description={t('datasetCreation.stepTwo.generalTip')}
isActive={ isActive={
[ChuckingMode.text, ChuckingMode.qa].includes(docForm) [ChuckingMode.text, ChuckingMode.qa].includes(
datasetId ? currentDataset!.doc_form : docForm,
)
} }
onSwitched={() => onSwitched={() =>
handleChangeDocform(ChuckingMode.text) handleChangeDocform(ChuckingMode.text)
@ -692,7 +694,9 @@ const StepTwo = ({
effectImg={OrangeEffect.src} effectImg={OrangeEffect.src}
activeHeaderClassName='bg-gradient-to-r from-[#F9F1EE] to-[#F9FAFB]' activeHeaderClassName='bg-gradient-to-r from-[#F9F1EE] to-[#F9FAFB]'
description={t('datasetCreation.stepTwo.parentChildTip')} description={t('datasetCreation.stepTwo.parentChildTip')}
isActive={docForm === ChuckingMode.parentChild} isActive={
datasetId ? currentDataset!.doc_form === ChuckingMode.parentChild : docForm === ChuckingMode.parentChild
}
onSwitched={() => handleChangeDocform(ChuckingMode.parentChild)} onSwitched={() => handleChangeDocform(ChuckingMode.parentChild)}
actions={ actions={
<> <>