FIX: do not strip nil string
This commit is contained in:
parent
b27e009655
commit
5ff84be8cc
|
@ -268,7 +268,7 @@ after_initialize do
|
|||
PollOption.create!(
|
||||
poll: created_poll,
|
||||
digest: option["id"].presence,
|
||||
html: option["html"].presence.strip
|
||||
html: option["html"].presence&.strip
|
||||
)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue