From 28187baa59168a4c8f5ee3ea4296fb51c16d2f0d Mon Sep 17 00:00:00 2001 From: NiclasNorin Date: Wed, 25 Oct 2023 11:37:53 +0200 Subject: [PATCH] fix: Do not render buttons without links --- source/php/Component/Segment/components/content.blade.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/source/php/Component/Segment/components/content.blade.php b/source/php/Component/Segment/components/content.blade.php index be1dea91..19212eae 100644 --- a/source/php/Component/Segment/components/content.blade.php +++ b/source/php/Component/Segment/components/content.blade.php @@ -81,8 +81,10 @@ @if ($buttons)
@foreach ($buttons as $button) - @button($button) - @endbutton + @if (!empty($button['href'])) + @button($button) + @endbutton + @endif @endforeach
@endif