Skip to content

Commit

Permalink
Merge pull request #483 from art-institute-of-chicago/fix/entries-cou…
Browse files Browse the repository at this point in the history
…nt-logic

Update digipub entries variation count for browseAll logic [WEB-2911]
  • Loading branch information
web-dev-trev committed Aug 21, 2024
2 parents 5ac3a66 + 9000cd0 commit 9704fd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/views/site/digitalPublicationDetail.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
@component('components.molecules._m-title-bar', [
'variation' => 'm-title-bar--compact m-title-bar--light',
])
@slot('links', (!in_array(count($topLevelArticle->children), [0, 4, 8])) ? $topLevelArticle->present()->getBrowseMoreLink($showAll) : [])
@slot('links', (count($topLevelArticle->children) > 4 && count($topLevelArticle->children) != 8) ? $topLevelArticle->present()->getBrowseMoreLink($showAll) : [])
{!! $topLevelArticle->title !!}
@endcomponent
@endif
Expand Down

0 comments on commit 9704fd8

Please sign in to comment.