Sfoglia il codice sorgente

fix: build error (#6480)

tags/0.6.15
crazywoola 1 anno fa
parent
commit
48f872a68c
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 4 aggiunte e 3 eliminazioni
  1. 4
    3
      web/app/(commonLayout)/tools/page.tsx

+ 4
- 3
web/app/(commonLayout)/tools/page.tsx Vedi File

@@ -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…
Annulla
Salva