Resolve non-conditionals as-is
This commit is contained in:
parent
ec30c595c4
commit
82da4b8e1e
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue