-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(Press room): use the latest press release in the Press Room landing page #432
Conversation
Branch preview✅ Deployed successfully in branch deployment: https://feature_latest_press_release--homepage.review.5afe.dev |
@@ -23,7 +24,7 @@ const PressReleases = ({ allPosts }: { allPosts: PostEntryCollection }) => { | |||
const { localAllPosts } = useAllPosts(allPosts) | |||
|
|||
const filteredPosts = useMemo(() => { | |||
const pressPosts = localAllPosts.items.filter(isPressReleasePost) | |||
const pressPosts = localAllPosts.items.filter((post) => isPressReleasePost(post) && !isDraft(post)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The two instances where isPressReleasePost
is used, now included a non-draft check. Should we this the "default", and moved into the helper (or a combined one added)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I agree it should be combined in the helper. Good suggestion!
What it solves
limit
of 150 blog articles on buildfeatured
field