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.

Use safe operator when fetching current webhook subscribers (#13094)

Damian Legawiece334fe983008
diff --git a/core/app/models/spree/current.rb b/core/app/models/spree/current.rb
index 6d3cc42180..af65b3353f 100644
--- a/core/app/models/spree/current.rb
+++ b/core/app/models/spree/current.rb
@@ -7,7 +7,7 @@ module Spree
end
def webhooks_subscribers
- super || store.active_webhooks_subscribers
+ super || store&.active_webhooks_subscribers || Spree::Webhooks::Subscriber.none
end
end
end