From 93aa691861366a6f0b1752cf2008f1ca18a4429a Mon Sep 17 00:00:00 2001 From: Finn Bacall Date: Tue, 31 Oct 2023 14:58:13 +0000 Subject: [PATCH] Fix material/event link misnaming on material JSON endpoint --- app/views/materials/show.json.jbuilder | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/materials/show.json.jbuilder b/app/views/materials/show.json.jbuilder index 51d3f35d5..ae6a68172 100644 --- a/app/views/materials/show.json.jbuilder +++ b/app/views/materials/show.json.jbuilder @@ -19,7 +19,7 @@ json.partial! 'common/ontology_terms', type: 'operations', resource: @material json.nodes @material.associated_nodes.collect { |x| { name: x[:name], node_id: x[:id] } } json.collections @material.collections.collect { |x| { title: x[:title], id: x[:id] } } -json.materials @material.events.collect { |x| { title: x[:title], id: x[:id] } } +json.events @material.events.collect { |x| { title: x[:title], id: x[:id] } } json.external_resources do @material.external_resources.each do |external_resource|