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: remove redundant props (#4787)

Lesenelir615c009c42ec
diff --git a/web/app/components/i18n-server.tsx b/web/app/components/i18n-server.tsx
index 25e999ed487..bea8332dbe9 100644
--- a/web/app/components/i18n-server.tsx
+++ b/web/app/components/i18n-server.tsx
@@ -7,7 +7,7 @@ export type II18NServerProps = {
children: React.ReactNode
}
-const I18NServer = async ({
+const I18NServer = ({
children,
}: II18NServerProps) => {
const locale = getLocaleOnServer()
diff --git a/web/app/layout.tsx b/web/app/layout.tsx
index 2f6a6bb8258..ca665fb360a 100644
--- a/web/app/layout.tsx
+++ b/web/app/layout.tsx
@@ -46,8 +46,7 @@ const LocaleLayout = ({
<Topbar/>
<BrowerInitor>
<SentryInitor>
- {/* @ts-expect-error Async Server Component */}
- <I18nServer locale={locale}>{children}</I18nServer>
+ <I18nServer>{children}</I18nServer>
</SentryInitor>
</BrowerInitor>
</body>