mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-07 13:15:28 +02:00
Resolve non-conditionals as-is
This commit is contained in:
parent
ec30c595c4
commit
82da4b8e1e
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,11 @@ class ACS {
|
||||||
}
|
}
|
||||||
|
|
||||||
getConditionalValue(condArray, memberName) {
|
getConditionalValue(condArray, memberName) {
|
||||||
assert(_.isArray(condArray));
|
if(!Array.isArray(condArray)) {
|
||||||
|
// no cond array, just use the value
|
||||||
|
return condArray;
|
||||||
|
}
|
||||||
|
|
||||||
assert(_.isString(memberName));
|
assert(_.isString(memberName));
|
||||||
|
|
||||||
const matchCond = condArray.find( cond => {
|
const matchCond = condArray.find( cond => {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue