Feat:csv & docx support (#1139)

Co-authored-by: jyong <jyong@dify.ai>
This commit is contained in:
KVOJJJin
2023-09-10 15:17:22 +08:00
committed by GitHub
parent f29e82685e
commit e161c511af
13 changed files with 68 additions and 39 deletions

View File

@@ -65,7 +65,7 @@ const StepOne = ({
const { dataset } = useDatasetDetailContext()
const [showModal, setShowModal] = useState(false)
const [currentFile, setCurrentFile] = useState<File | undefined>()
const [currentNotionPage, setCurrentNotionPage] = useState<Page | undefined>()
const [currentNotionPage, setCurrentNotionPage] = useState<NotionPage | undefined>()
const { t } = useTranslation()
const modalShowHandle = () => setShowModal(true)
@@ -78,7 +78,7 @@ const StepOne = ({
setCurrentFile(undefined)
}
const updateCurrentPage = (page: Page) => {
const updateCurrentPage = (page: NotionPage) => {
setCurrentNotionPage(page)
}