diff --git a/app/helpers/application_helper/button/basic_image.rb b/app/helpers/application_helper/button/basic_image.rb index 1c4b8267ded..41e116c2b9f 100644 --- a/app/helpers/application_helper/button/basic_image.rb +++ b/app/helpers/application_helper/button/basic_image.rb @@ -1,7 +1,6 @@ class ApplicationHelper::Button::BasicImage < ApplicationHelper::Button::Basic def visible? - @sb.fetch_path(:trees, :vandt_tree, :active_node).blank? || - (@sb[:trees][:vandt_tree][:active_node] != "xx-arch" && - @sb[:trees][:vandt_tree][:active_node] != "xx-orph") + active_node = @view_context.x_node + active_node.blank? || (active_node != "xx-arch" && active_node != "xx-orph") end end