From 39a7ef4223057458473cf82164f8f88753789804 Mon Sep 17 00:00:00 2001 From: Sam Seed Date: Fri, 18 Nov 2022 15:22:52 +0000 Subject: [PATCH] refactor: make consistent the removal of fields from SchemeHelper base_attributes --- app/helpers/schemes_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/schemes_helper.rb b/app/helpers/schemes_helper.rb index d4b91444a..85f6dc097 100644 --- a/app/helpers/schemes_helper.rb +++ b/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