fix: handle case with no lang/uid for langswitcher and footer
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user