diff --git a/app/views/org_admin/templates/_form.html.erb b/app/views/org_admin/templates/_form.html.erb index 81af474..a6f92e0 100644 --- a/app/views/org_admin/templates/_form.html.erb +++ b/app/views/org_admin/templates/_form.html.erb @@ -56,7 +56,7 @@ locals: { context: 'funder', title: _('Funder Links'), - links: template.links['funder'], + links: Hash(template.links).fetch('funder', []), max_number_links: MAX_NUMBER_LINKS_FUNDER, tooltip: _('Add links to funder websites that provide additional information about the requirements for this template') }) %> @@ -65,7 +65,7 @@ locals: { context: 'sample_plan', title: _('Sample Plan Links'), - links: template.links['sample_plan'], + links: Hash(template.links).fetch('sample_plan', []), max_number_links: MAX_NUMBER_LINKS_SAMPLE_PLAN, tooltip: _('Add links to sample plans if provided by the funder.') }) %>