Fix some bugs with merging when no explicit form defined

This commit is contained in:
Bryan Ashby 2016-01-16 19:04:17 -07:00
parent 5700ff27ba
commit 12414d0d7a
3 changed files with 34 additions and 6 deletions

View file

@ -152,8 +152,8 @@ function MenuModule(options) {
self.prevMenu();
}
}
if(!_.isObject(self.menuConfig.form) && !_.isString(self.menuConfig.prompt)) {
if(_.has(self.menuConfig, 'runtime.autoNext') && true === self.menuConfig.runtime.autoNext) {
/*
If 'next' is supplied, we'll use it. Otherwise, utlize fallback which
may be explicit (supplied) or non-explicit (previous menu)