mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 13:38:18 -08:00
fix: don't concat nils into array
This commit is contained in:
parent
65acd68d84
commit
23e5f9bb48
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ class SurveyResponsesDataLoader
|
|||
row = process_row(row: SurveyItemValues.new(row:, headers: headers_array,
|
||||
survey_items: all_survey_items, schools:, academic_years:))
|
||||
|
||||
survey_item_responses.concat(row)
|
||||
survey_item_responses.concat(row) unless row.nil?
|
||||
end
|
||||
|
||||
survey_item_responses = survey_item_responses.compact.flatten
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue