Skip to content

Commit 93aa691

Browse files
committed
Fix material/event link misnaming on material JSON endpoint
1 parent 42f36f4 commit 93aa691

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/materials/show.json.jbuilder

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ json.partial! 'common/ontology_terms', type: 'operations', resource: @material
1919

2020
json.nodes @material.associated_nodes.collect { |x| { name: x[:name], node_id: x[:id] } }
2121
json.collections @material.collections.collect { |x| { title: x[:title], id: x[:id] } }
22-
json.materials @material.events.collect { |x| { title: x[:title], id: x[:id] } }
22+
json.events @material.events.collect { |x| { title: x[:title], id: x[:id] } }
2323

2424
json.external_resources do
2525
@material.external_resources.each do |external_resource|

0 commit comments

Comments
 (0)