fix(procedure): don't crash when procedure does not exist on /fermerture path

This commit is contained in:
Colin Darie 2024-03-19 14:45:55 +01:00
parent ebe762ee5d
commit 370aa074d2
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -80,6 +80,9 @@ module Users
def closing_details
@procedure = Procedure.find_by(path: params[:path])
return procedure_not_found if @procedure.blank?
render 'closing_details', layout: 'closing_details'
end