diff --git a/app/finders/spree_multi_vendor/products_finder_decorator.rb b/app/finders/spree_multi_vendor/products_finder_decorator.rb index f2e19090..0a1ac9bd 100644 --- a/app/finders/spree_multi_vendor/products_finder_decorator.rb +++ b/app/finders/spree_multi_vendor/products_finder_decorator.rb @@ -9,7 +9,7 @@ def initialize(scope:, params:, current_currency: nil) def execute products = by_vendors(super) - products.distinct + products.try(:distinct) end private