Skip to content

Commit

Permalink
fix-page-tagging-menu-attach-cond
Browse files Browse the repository at this point in the history
  • Loading branch information
mickenorlen committed Feb 21, 2020
1 parent 97a51ee commit 431a512
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/alchemy/page.rb
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ def attach_to_menu!
end

def should_attach_to_menu?
menu_id && nodes.none?
menu_id.present? && nodes.none?
end
end
end

0 comments on commit 431a512

Please sign in to comment.