Removed Promise.All since it was only one fetch
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user