feat(SW-187): Fixed LanguageSwitcher for footer
This commit is contained in:
@@ -9,7 +9,9 @@ export default async function Footer() {
|
||||
const footerData = await serverClient().contentstack.base.footer({
|
||||
lang: getLang(),
|
||||
})
|
||||
if (!footerData) {
|
||||
const languages = await serverClient().contentstack.languageSwitcher.get()
|
||||
|
||||
if (!footerData || !languages) {
|
||||
return <FooterDetails />
|
||||
}
|
||||
return (
|
||||
@@ -22,6 +24,7 @@ export default async function Footer() {
|
||||
<FooterDetails
|
||||
socialMedia={footerData.socialMedia}
|
||||
tertiaryLinks={footerData.tertiaryLinks}
|
||||
languageUrls={languages.urls}
|
||||
/>
|
||||
</footer>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user