From 133df2266c49afbf634fb0e8e9caa56c3778dbf4 Mon Sep 17 00:00:00 2001 From: Jade Geels Date: Fri, 19 Jun 2026 13:30:26 +0200 Subject: [PATCH 1/3] Add check for empty js lists in productlist --- .../views/components/productlist.blade.php | 80 ++++++++++--------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/resources/views/components/productlist.blade.php b/resources/views/components/productlist.blade.php index 52e5813f4..2feece44a 100644 --- a/resources/views/components/productlist.blade.php +++ b/resources/views/components/productlist.blade.php @@ -11,45 +11,47 @@ @if ($value !== []) - -
- - @slotdefault('before') - @if ($value && $value !== []) - - @endif - @endslotdefault - - -
- @if ($title) - - @lang($title) - + @if (!is_array($value)) @endif @endif From 758adba442b3b62048560dddb2ff0c72ddb7a0be Mon Sep 17 00:00:00 2001 From: Jade-GG Date: Fri, 19 Jun 2026 11:30:47 +0000 Subject: [PATCH 2/3] Apply fixes from Duster --- resources/views/components/productlist.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/components/productlist.blade.php b/resources/views/components/productlist.blade.php index 2feece44a..69d155b2b 100644 --- a/resources/views/components/productlist.blade.php +++ b/resources/views/components/productlist.blade.php @@ -34,7 +34,7 @@ }})'"/> @endif @endslotdefault - +
@if ($title) @@ -47,7 +47,7 @@ @endslotdefault
- + {{ $after ?? '' }}
From 3dc0734a89201bf74aa44eede30d85484d2818d3 Mon Sep 17 00:00:00 2001 From: Jade Date: Fri, 19 Jun 2026 13:42:12 +0200 Subject: [PATCH 3/3] Fix for collections as well --- resources/views/components/productlist.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/components/productlist.blade.php b/resources/views/components/productlist.blade.php index 69d155b2b..79cdc6ac6 100644 --- a/resources/views/components/productlist.blade.php +++ b/resources/views/components/productlist.blade.php @@ -9,9 +9,9 @@ --}} -@if ($value !== []) +@if (!is_iterable($value) || count($value)) - @if (!is_array($value))