From 82da4b8e1ea708ea2fe48e598138c5e46ff2abb9 Mon Sep 17 00:00:00 2001 From: Bryan Ashby Date: Wed, 13 Jun 2018 20:54:17 -0600 Subject: [PATCH] Resolve non-conditionals as-is --- core/acs.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/acs.js b/core/acs.js index 9532ad78..90c7c2a6 100644 --- a/core/acs.js +++ b/core/acs.js @@ -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 => {