Skip to content

Commit

Permalink
[B] Only renders EntryCallout if entry exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake Mason authored and blnkt committed Mar 13, 2024
1 parent 48fb00f commit 73a6750
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/content-blocks/Callout/CalloutEntry/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 73a6750

Please sign in to comment.