mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-06-07 21:25:34 +02:00
Clean up code for updated getConditionalValue()
This commit is contained in:
parent
c08e4dbe04
commit
7748765ce0
1 changed files with 1 additions and 5 deletions
|
@ -221,11 +221,7 @@ function handleAction(client, formData, conf, cb) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function handleNext(client, nextSpec, conf, cb) {
|
function handleNext(client, nextSpec, conf, cb) {
|
||||||
assert(_.isString(nextSpec) || _.isArray(nextSpec));
|
nextSpec = client.acs.getConditionalValue(nextSpec, 'next'); // handle any conditionals
|
||||||
|
|
||||||
if(_.isArray(nextSpec)) {
|
|
||||||
nextSpec = client.acs.getConditionalValue(nextSpec, 'next');
|
|
||||||
}
|
|
||||||
|
|
||||||
const nextAsset = asset.getAssetWithShorthand(nextSpec, 'menu');
|
const nextAsset = asset.getAssetWithShorthand(nextSpec, 'menu');
|
||||||
// :TODO: getAssetWithShorthand() can return undefined - handle it!
|
// :TODO: getAssetWithShorthand() can return undefined - handle it!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue