fix: correct conditional link logic
This commit is contained in:
@@ -56,7 +56,7 @@ export default function Content({ user, lang, content }: ContentProps) {
|
|||||||
title: item.dynamic_content.title,
|
title: item.dynamic_content.title,
|
||||||
// TODO: rename preamble to subtitle in Contentstack
|
// TODO: rename preamble to subtitle in Contentstack
|
||||||
subtitle: item.dynamic_content.preamble,
|
subtitle: item.dynamic_content.preamble,
|
||||||
...link,
|
...(link && { link }),
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<DynamicComponent
|
<DynamicComponent
|
||||||
|
|||||||
Reference in New Issue
Block a user