Browse Source

refactor: make consistent the removal of fields from SchemeHelper base_attributes

pull/987/head
Sam Seed 4 years ago
parent
commit
39a7ef4223
  1. 2
      app/helpers/schemes_helper.rb

2
app/helpers/schemes_helper.rb

@ -26,7 +26,7 @@ module SchemesHelper
end
if scheme.arrangement_type_same?
base_attributes.delete({ name: "Organisation providing support", value: scheme.managing_organisation&.name })
base_attributes.delete_if {|item| item[:name] == "Organisation providing support"}
end
base_attributes
end

Loading…
Cancel
Save