Update app/controllers/experts/avis_controller.rb

Co-authored-by: Colin Darie <colin@darie.eu>
This commit is contained in:
mfo 2023-09-18 16:55:07 +02:00 committed by GitHub
parent aa10f23b43
commit 25d7333ac3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ module Experts
def avis_new
@new_avis = Avis.new
if @dossier.procedure.experts_require_administrateur_invitation?
@experts_emails = @dossier.procedure.experts_procedures.where(revoked_at: nil).map(&:expert).map(&:email).sort
@experts_emails = @dossier.procedure.experts_procedures.where(revoked_at: nil).map { _1.expert.email }.sort
else
@experts_emails = @dossier.procedure.experts.map(&:email).sort
end