use safety operator when indexing comment tag list (#6407)
This commit is contained in:
parent
dee8d39fe7
commit
a9ffccc1ac
1 changed files with 1 additions and 1 deletions
|
|
@ -58,7 +58,7 @@ class Comment < ApplicationRecord
|
|||
custom_css
|
||||
end
|
||||
attribute :tag_list do
|
||||
commentable.tag_list
|
||||
commentable&.tag_list
|
||||
end
|
||||
attribute :root_path do
|
||||
root&.path
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue