mirror of https://github.com/langgenius/dify.git
refactor: Rename createRouter to createRoute
This commit is contained in:
parent
88563f10df
commit
92a91d790f
|
|
@ -61,7 +61,7 @@ const DatasetNav = () => {
|
|||
}) as NavItem[]
|
||||
}, [datasetItems])
|
||||
|
||||
const createRouter = useMemo(() => {
|
||||
const createRoute = useMemo(() => {
|
||||
const runtimeMode = currentDataset?.runtime_mode
|
||||
if (runtimeMode === 'rag_pipeline')
|
||||
return `${basePath}/datasets/create-from-pipeline`
|
||||
|
|
@ -85,7 +85,7 @@ const DatasetNav = () => {
|
|||
curNav={curNav}
|
||||
navigationItems={navigationItems}
|
||||
createText={t('common.menus.newDataset')}
|
||||
onCreate={() => router.push(createRouter)}
|
||||
onCreate={() => router.push(createRoute)}
|
||||
onLoadMore={handleLoadMore}
|
||||
/>
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue