From 05fd339d39c1d08afc1e464587b1c8602401f763 Mon Sep 17 00:00:00 2001 From: Payten Giles Date: Tue, 30 Mar 2021 13:05:32 +1100 Subject: [PATCH] Fix missing note exception --- backend/model/spreadsheet_builder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/model/spreadsheet_builder.rb b/backend/model/spreadsheet_builder.rb index 8ea3042..4299726 100644 --- a/backend/model/spreadsheet_builder.rb +++ b/backend/model/spreadsheet_builder.rb @@ -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