mirror of https://github.com/langgenius/dify.git
fix: build error (#6480)
This commit is contained in:
parent
4f9f175f25
commit
48f872a68c
|
|
@ -12,15 +12,16 @@ const Layout: FC = () => {
|
|||
const { isCurrentWorkspaceDatasetOperator } = useAppContext()
|
||||
|
||||
useEffect(() => {
|
||||
document.title = `${t('tools.title')} - Dify`
|
||||
if (typeof window !== 'undefined')
|
||||
document.title = `${t('tools.title')} - Dify`
|
||||
if (isCurrentWorkspaceDatasetOperator)
|
||||
return router.replace('/datasets')
|
||||
}, [])
|
||||
}, [isCurrentWorkspaceDatasetOperator, router, t])
|
||||
|
||||
useEffect(() => {
|
||||
if (isCurrentWorkspaceDatasetOperator)
|
||||
return router.replace('/datasets')
|
||||
}, [isCurrentWorkspaceDatasetOperator])
|
||||
}, [isCurrentWorkspaceDatasetOperator, router])
|
||||
|
||||
return <ToolProviderList />
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue