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.

Return only distinct/uniq taxons (#11651)

Damian Legawiecba25cd7e6ebe
diff --git a/core/app/finders/spree/taxons/find.rb b/core/app/finders/spree/taxons/find.rb
index 1aa4563b89..0c3ac27f0d 100644
--- a/core/app/finders/spree/taxons/find.rb
+++ b/core/app/finders/spree/taxons/find.rb
@@ -19,7 +19,7 @@ module Spree
taxons = by_roots(taxons)
taxons = by_name(taxons)
- taxons
+ taxons.distinct
end
private