Skip to content

Commit

Permalink
fix: issue with collections, treat fact set with priority to handle l…
Browse files Browse the repository at this point in the history
…ists
  • Loading branch information
meenahoda committed Jan 24, 2022
1 parent eba9393 commit 9ecb27e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,7 @@ module.exports = function (cardscript) {

const collection = collections[type]

if (collection) {
dottie.get(element, collection).forEach(parseElement)
} else if (type === 'Input.ApiLookup') {
if (type === 'Input.ApiLookup') {
if (element.parametersCard) element.parametersCard.body.forEach(parseElement)
if (element.resultsCard) element.resultsCard.body.forEach(parseElement)
} else if (type === 'Input.ChoiceSet') {
Expand All @@ -61,6 +59,8 @@ module.exports = function (cardscript) {
}
}
}
} else if (collection) {
dottie.get(element, collection).forEach(parseElement)
}
}

Expand Down

0 comments on commit 9ecb27e

Please sign in to comment.