Merged in fix/teaser-card-issue (pull request #2459)

fix(SW-3120): update teaser card validation

* fix: update teaser card validation


Approved-by: Michael Zetterberg
Approved-by: Linus Flood
This commit is contained in:
Matilda Landström
2025-06-27 13:27:35 +00:00
parent fe75018a46
commit 2b5573059c
2 changed files with 38 additions and 34 deletions

View File

@@ -39,10 +39,12 @@ export default function TeaserCardSidepeek({
handleClose={() => setSidePeekIsOpen(false)}
openInRoot
>
<JsonToHtml
nodes={content.json.children}
embeds={content.embedded_itemsConnection.edges}
/>
{content ? (
<JsonToHtml
nodes={content.json.children}
embeds={content.embedded_itemsConnection.edges}
/>
) : null}
<div className={styles.ctaContainer}>
{primary_button && (
<ButtonLink