fix: correct conditional link logic

This commit is contained in:
Arvid Norlin
2024-04-24 10:46:18 +02:00
parent e3d3fa5528
commit a6a909a631

View File

@@ -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