diff --git a/app/models/concerns/attachments.rb b/app/models/concerns/attachments.rb index c5d1125c6..de0dcea70 100644 --- a/app/models/concerns/attachments.rb +++ b/app/models/concerns/attachments.rb @@ -2,7 +2,7 @@ module Attachments extend ActiveSupport::Concern def attachments - rich_text_record.embeds + rich_text_record&.embeds || [] end def has_attachments?