Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: build error (#6480)

crazywoola48f872a68c06
diff --git a/web/app/(commonLayout)/tools/page.tsx b/web/app/(commonLayout)/tools/page.tsx
index 4e64d8c0dfe..1b08d54ba3e 100644
--- a/web/app/(commonLayout)/tools/page.tsx
+++ b/web/app/(commonLayout)/tools/page.tsx
@@ -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 />
}