fix condition si monavis est nil

This commit is contained in:
Benoit Queyron 2024-06-10 13:06:54 +02:00
parent 1ee667af75
commit ef2a021971
2 changed files with 2 additions and 2 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View file

@ -90,9 +90,9 @@ class NotificationMailer < ApplicationMailer
end
def set_jdma
return unless params[:state] == Dossier.states.fetch(:en_construction)
return unless params[:state] == Dossier.states.fetch(:en_construction) && @dossier.procedure.monavis_embed
@jdma_html = @dossier.procedure.monavis_embed_html_source("email").presence
@jdma_html = @dossier.procedure.monavis_embed_html_source("email")
end
def set_dossier