Skip to content

Commit

Permalink
BUGFIX: Strip null values from vantage code array in SQL response
Browse files Browse the repository at this point in the history
  • Loading branch information
NickPhura committed Jun 21, 2022
1 parent f04274c commit 9670521
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/queries/survey/survey-view-update-queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const getSurveyPurposeAndMethodologyForUpdateSQL = (surveyId: number): SQ
s.ecological_season_id,
s.intended_outcome_id,
s.surveyed_all_areas,
array_agg(sv.vantage_id) as vantage_ids
array_remove(array_agg(sv.vantage_id), NULL) as vantage_ids
FROM
survey s
LEFT OUTER JOIN
Expand Down

0 comments on commit 9670521

Please sign in to comment.