diff --git a/app/controllers/crops_controller.rb b/app/controllers/crops_controller.rb index 89e45a163..8a02e195c 100644 --- a/app/controllers/crops_controller.rb +++ b/app/controllers/crops_controller.rb @@ -139,7 +139,7 @@ class CropsController < ApplicationController def notify_wranglers return if current_member.role? :crop_wrangler - Role.crop_wranglers.each do |w| + Role.crop_wranglers&.each do |w| Notifier.new_crop_request(w, @crop).deliver_now! end end