views: fix exception when creating a procedure with estimate enabled
This commit is contained in:
parent
8c3356b620
commit
1a34a357a3
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
%h1.procedure-title
|
||||
= procedure.libelle
|
||||
|
||||
- if procedure.feature_enabled?(:procedure_estimated_fill_duration)
|
||||
- if procedure.persisted? && procedure.feature_enabled?(:procedure_estimated_fill_duration)
|
||||
%p.procedure-configuration.procedure-configuration--fill-duration
|
||||
%span.icon.clock
|
||||
= t('shared.procedure_description.estimated_fill_duration', estimated_minutes: estimated_fill_duration_minutes(procedure))
|
||||
|
|
Loading…
Add table
Reference in a new issue