Resolve non-conditionals as-is

This commit is contained in:
Bryan Ashby 2018-06-13 20:54:17 -06:00
parent ec30c595c4
commit 82da4b8e1e
1 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,11 @@ class ACS {
}
getConditionalValue(condArray, memberName) {
assert(_.isArray(condArray));
if(!Array.isArray(condArray)) {
// no cond array, just use the value
return condArray;
}
assert(_.isString(memberName));
const matchCond = condArray.find( cond => {