When we delete, we may have deleted everything on the current page, so dont advance

This commit is contained in:
Deon George 2024-10-01 12:02:08 +10:00
parent 629202c9dd
commit 40b9910d8d

View File

@ -24,7 +24,7 @@
<form action="{{ $return }}" method="POST">
@csrf
<input type="hidden" name="page" value="{{ $catalog->hasMorePages() ? $catalog->currentPage()+1 : NULL }}">
<input type="hidden" name="page" value="{{ $catalog->hasMorePages() ? $catalog->currentPage() : NULL }}">
<input type="hidden" name="type" value="{{ $type }}">
@include('catalog.widgets.list')