Skip to content

Commit

Permalink
refactor: hide articles section if none have been published (#621)
Browse files Browse the repository at this point in the history
  • Loading branch information
crnkovic authored Jan 24, 2024
1 parent fcc8159 commit f6977ff
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions resources/js/Pages/Collections/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,12 @@ const CollectionsIndex = ({
</div>
</div>

<CollectionsArticles
latest={latestArticles}
popular={popularArticles}
/>
{latestArticles.length > 0 && (
<CollectionsArticles
latest={latestArticles}
popular={popularArticles}
/>
)}

<CollectionsCallToAction />
</DefaultLayout>
Expand Down

0 comments on commit f6977ff

Please sign in to comment.