From 73a67509690b74f49a6429cd20a570c207f52f23 Mon Sep 17 00:00:00 2001 From: Blake Mason Date: Wed, 13 Mar 2024 14:04:44 -0700 Subject: [PATCH] [B] Only renders EntryCallout if entry exists --- components/content-blocks/Callout/CalloutEntry/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/content-blocks/Callout/CalloutEntry/index.js b/components/content-blocks/Callout/CalloutEntry/index.js index be5a3254..caf6ace0 100644 --- a/components/content-blocks/Callout/CalloutEntry/index.js +++ b/components/content-blocks/Callout/CalloutEntry/index.js @@ -37,6 +37,8 @@ export default function CalloutEntry({ callout }) { // mix in the noirlabReleases from additional fetch to different endpoint const { data: entryWithRelease } = useRelease(getSiteString(lang), entry[0]); + if (!entry[0] && !entryWithRelease) return null; + const { title, date,