This commit is contained in:
+2
-4
@@ -84,10 +84,8 @@ export default async function RootLayout({
|
||||
}>) {
|
||||
noStore();
|
||||
|
||||
const [locale, siteSettings] = await Promise.all([
|
||||
getLocale().catch(() => "de"),
|
||||
getSiteSettings(),
|
||||
]);
|
||||
const siteSettings = await getSiteSettings();
|
||||
const locale = await getLocale().catch(() => siteSettings.defaultLocale);
|
||||
|
||||
return (
|
||||
<html lang={locale} dir={getDirection(locale)} suppressHydrationWarning>
|
||||
|
||||
Reference in New Issue
Block a user