Fix: dataset list refresh (#1216)
This commit is contained in:
parent
fd3d43cae1
commit
59236b789f
6 changed files with 34 additions and 23 deletions
|
|
@ -10,7 +10,7 @@ import StepThree from './step-three'
|
|||
import { DataSourceType } from '@/models/datasets'
|
||||
import type { DataSet, FileItem, createDocumentResponse } from '@/models/datasets'
|
||||
import { fetchDataSource } from '@/service/common'
|
||||
import { fetchDataDetail } from '@/service/datasets'
|
||||
import { fetchDatasetDetail } from '@/service/datasets'
|
||||
import type { NotionPage } from '@/models/common'
|
||||
import { useProviderContext } from '@/context/provider-context'
|
||||
|
||||
|
|
@ -91,7 +91,7 @@ const DatasetUpdateForm = ({ datasetId }: DatasetUpdateFormProps) => {
|
|||
(async () => {
|
||||
if (datasetId) {
|
||||
try {
|
||||
const detail = await fetchDataDetail(datasetId)
|
||||
const detail = await fetchDatasetDetail(datasetId)
|
||||
setDetail(detail)
|
||||
}
|
||||
catch (e) {
|
||||
|
|
@ -151,4 +151,4 @@ const DatasetUpdateForm = ({ datasetId }: DatasetUpdateFormProps) => {
|
|||
)
|
||||
}
|
||||
|
||||
export default DatasetUpdateForm
|
||||
export default DatasetUpdateForm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue