Merged in fix/nullable-dynamic-content-in-static-page-header (pull request #2058)

fix: update header  dynamic_content schema to allow null values

* fix: update header  dynamic_content schema to allow null values

* fix: update to use nullish


Approved-by: Erik Tiekstra
This commit is contained in:
Chuma Mcphoy (We Ahead)
2025-05-12 12:57:40 +00:00
parent bbc279379f
commit 8530c2cc93
2 changed files with 5 additions and 3 deletions
@@ -53,7 +53,9 @@ export default async function StaticPage({
{header.navigation_links ? (
<LinkChips chips={header.navigation_links} />
) : null}
{"dynamic_content" in header && header.dynamic_content ? (
{"dynamic_content" in header &&
header.dynamic_content !== null &&
header.dynamic_content !== undefined ? (
<HeaderDynamicContent {...header.dynamic_content} />
) : null}
</>