diff --git a/core/menu_util.js b/core/menu_util.js index a86690e5..4a4665b8 100644 --- a/core/menu_util.js +++ b/core/menu_util.js @@ -221,11 +221,7 @@ function handleAction(client, formData, conf, cb) { } function handleNext(client, nextSpec, conf, cb) { - assert(_.isString(nextSpec) || _.isArray(nextSpec)); - - if(_.isArray(nextSpec)) { - nextSpec = client.acs.getConditionalValue(nextSpec, 'next'); - } + nextSpec = client.acs.getConditionalValue(nextSpec, 'next'); // handle any conditionals const nextAsset = asset.getAssetWithShorthand(nextSpec, 'menu'); // :TODO: getAssetWithShorthand() can return undefined - handle it!