Skip to content

Commit

Permalink
added a condition to handle the possibility of no categories for a page
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleypliu committed Aug 18, 2020
1 parent 5bd5011 commit f7571ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/comfy_patching.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def import_page(path, parent)
end
end

page.page_categories = new_categories
page.page_categories = new_categories unless new_categories.empty?
# END OF CUSTOM CODE


Expand Down

0 comments on commit f7571ab

Please sign in to comment.