Fix sentry issue #2139 when published_at is nil
This commit is contained in:
parent
44c335d53e
commit
d901852e09
2 changed files with 17 additions and 2 deletions
|
@ -10,7 +10,9 @@ class ProcedureDecorator < Draper::Decorator
|
|||
end
|
||||
|
||||
def published_at_fr
|
||||
published_at.localtime.strftime('%d/%m/%Y %H:%M')
|
||||
if published_at.present?
|
||||
published_at.localtime.strftime('%d/%m/%Y %H:%M')
|
||||
end
|
||||
end
|
||||
|
||||
def logo_img
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue