Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

Merge pull request #12957 from spree/fix/admin-pagination

Damian Legawiec5fcb12fa5eac
diff --git a/admin/app/views/spree/admin/shared/_index_table_options.html.erb b/admin/app/views/spree/admin/shared/_index_table_options.html.erb
index 926cfc092b..6f469617bc 100644
--- a/admin/app/views/spree/admin/shared/_index_table_options.html.erb
+++ b/admin/app/views/spree/admin/shared/_index_table_options.html.erb
@@ -5,7 +5,7 @@
<% args[:action] = per_page_action %>
<% end %>
-<% if collection.any? %>
+<% if collection.any? && collection.respond_to?(:current_page) %>
<div class="pagination-container">
<div class="index-pagination-row d-flex align-items-center">
<div class="col-6 col-lg-3">