Skip to content

Commit

Permalink
update optionSets filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
mtuchi committed Nov 5, 2024
1 parent 2a2069a commit 3b69201
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion workflows/wf3/2-map-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ fn(state => {
.map(item => mapArrayToObject(item, keys))
.filter(
o =>
isValidValue(o['External ID']) && isValidValue(o['DHIS2 DE full name'])
(isValidValue(o['External ID']) &&
isValidValue(o['DHIS2 DE full name'])) ||
(isValidValue(o['value.display - Answers']) &&
isValidValue(o['DHIS2 Option code']))
)
.map(o => {
return {
Expand Down

0 comments on commit 3b69201

Please sign in to comment.