Skip to content

Commit

Permalink
fix: Do not render buttons without links
Browse files Browse the repository at this point in the history
  • Loading branch information
NiclasNorin committed Oct 25, 2023
1 parent 17fcb29 commit 28187ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions source/php/Component/Segment/components/content.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@
@if ($buttons)
<div class="{{ $baseClass }}__buttons">
@foreach ($buttons as $button)
@button($button)
@endbutton
@if (!empty($button['href']))
@button($button)
@endbutton
@endif
@endforeach
</div>
@endif

0 comments on commit 28187ba

Please sign in to comment.