fix: handle case with no lang/uid for langswitcher and footer

This commit is contained in:
Christel Westerberg
2024-06-05 11:24:27 +02:00
parent 512738428e
commit b8982dacf4
5 changed files with 11 additions and 9 deletions

View File

@@ -6,8 +6,10 @@ import Navigation from "./Navigation"
import styles from "./footer.module.css"
export default async function Footer() {
const footerData = await serverClient().contentstack.base.footer()
import { LangParams } from "@/types/params"
export default async function Footer({ lang }: LangParams) {
const footerData = await serverClient().contentstack.base.footer({ lang })
return (
<footer className={styles.container}>
<div className={styles.content}>