Skip to content

Commit

Permalink
Fix undefined method error
Browse files Browse the repository at this point in the history
Resolves #308
  • Loading branch information
jvendetti authored and syphax-bouazzouni committed Apr 29, 2024
1 parent b4eb6e0 commit eb424a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/controllers/notes_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def show
id = clean_note_id(params[:id])

@note = LinkedData::Client::Models::Note.get(id, include_threads: true)
@ontology = (@notes.explore.relatedOntology || []).first
@note_decorator = NoteDecorator.new(@note, view_context)
@ontology = (@note.explore.relatedOntology || []).first

if request.xhr?
render :partial => 'thread'
Expand Down

0 comments on commit eb424a1

Please sign in to comment.