Skip to content

Commit

Permalink
Fix missing note exception
Browse files Browse the repository at this point in the history
  • Loading branch information
payten committed Mar 30, 2021
1 parent d267738 commit 05fd339
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/model/spreadsheet_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def dataset_iterator(&block)
if column.jsonmodel == :archival_object
current_row << ColumnAndValue.new(column.value_for(row[column.column]), column)
elsif column.is_a?(NoteContentColumn)
note_content = subrecord_datasets.fetch(column.name).fetch(row[:id], []).fetch(column.index, nil)
note_content = subrecord_datasets.fetch(column.name, {}).fetch(row[:id], []).fetch(column.index, nil)
if note_content
current_row << ColumnAndValue.new(note_content, column)
else
Expand Down

0 comments on commit 05fd339

Please sign in to comment.