Removed Promise.All since it was only one fetch

This commit is contained in:
Linus Flood
2024-09-25 09:27:12 +02:00
parent 3a6e2c6279
commit bedfa44819

View File

@@ -11,11 +11,9 @@ import TopMenu from "../TopMenu"
import styles from "../header.module.css" import styles from "../header.module.css"
export default async function HeaderFallback() { export default async function HeaderFallback() {
const [data] = await Promise.all([ const data = await serverClient().contentstack.base.currentHeader({
serverClient().contentstack.base.currentHeader({
lang: getLang(), lang: getLang(),
}), })
])
if (!data) { if (!data) {
return null return null