Skip to content

Commit

Permalink
Fix material/event link misnaming on material JSON endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Oct 31, 2023
1 parent 42f36f4 commit 93aa691
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/materials/show.json.jbuilder
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 93aa691

Please sign in to comment.