Skip to content

Commit

Permalink
Merge branch 'main' into ms-hide-forecasted-grants
Browse files Browse the repository at this point in the history
  • Loading branch information
lsr-explore authored Oct 17, 2024
2 parents 6b1e358 + 2722baf commit a27d07b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/arpa_reporter/services/validate-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ async function validateRecord({ upload, record, typeRules: rules }) {
const lcItems = rule.listVals.map((val) => multiselect(val.toLowerCase()));

// for pick lists, the value must be one of possible values
if (rule.dataType === 'Pick List' && !lcItems.includes(value)) {
if (rule.dataType === 'Pick List' && !lcItems.includes(multiselect(value))) {
errors.push(new ValidationError(
`Value for ${key} ('${value}') must be one of ${lcItems.length} options in the input template`,
`Value for ${key} ('${value}') must be one of ${lcItems.length} valid options in the input template. (${JSON.stringify(lcItems)})`,
{ col: rule.columnName, severity: 'err' },
));
}
Expand Down

0 comments on commit a27d07b

Please sign in to comment.