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,
|
||||
// TODO: rename preamble to subtitle in Contentstack
|
||||
subtitle: item.dynamic_content.preamble,
|
||||
...link,
|
||||
...(link && { link }),
|
||||
}
|
||||
return (
|
||||
<DynamicComponent
|
||||
|
||||
Reference in New Issue
Block a user