lib/eco/api/usecases/graphql/helpers/location/base.rb in eco-helpers-2.6.0 vs lib/eco/api/usecases/graphql/helpers/location/base.rb in eco-helpers-2.6.1

- old
+ new

@@ -21,11 +21,10 @@ def track_current_tree(tree) return if simulate? return unless tree latest_tree = tree if tree.is_a?(Eco::API::Organization::TagTree) if tree.respond_to?(:treeify) - args = { enviro: session.enviro, id: tree.id, name: tree.name} - latest_tree ||= Eco::API::Organization::TagTree.new(tree.treeify, **args) + latest_tree ||= Eco::API::Organization::TagTree.new(tree.treeify, id: tree.id, name: tree.name) end latest_tree.tap do |_tree| next unless latest_tree @previous_tree = @current_tree self.current_tree = latest_tree