diff --git a/config/initializers/comfy_patching.rb b/config/initializers/comfy_patching.rb index 2cfb1c0fe..10c4b5c27 100644 --- a/config/initializers/comfy_patching.rb +++ b/config/initializers/comfy_patching.rb @@ -144,7 +144,7 @@ def import_page(path, parent) fragments_attributes.select { |attr| attr[:tag] == 'categories'}.each do |cat| cat[:content].split(' ').each do |label| category = Comfy::Cms::PageCategory.where(label: label).first - new_categories << category + new_categories << category unless category.nil? end end