Proper callback when missing MCI
This commit is contained in:
parent
74b03fe846
commit
308f09b291
|
@ -73,7 +73,7 @@ exports.getModule = class MessageConfListModule extends MenuModule {
|
||||||
(next) => {
|
(next) => {
|
||||||
const confListView = this.viewControllers.confList.getView(MciViewIds.confList);
|
const confListView = this.viewControllers.confList.getView(MciViewIds.confList);
|
||||||
if(!confListView) {
|
if(!confListView) {
|
||||||
return cb(Errors.MissingMci(`Missing conf list MCI ${MciViewIds.confList}`));
|
return next(Errors.MissingMci(`Missing conf list MCI ${MciViewIds.confList}`));
|
||||||
}
|
}
|
||||||
|
|
||||||
confListView.on('index update', idx => {
|
confListView.on('index update', idx => {
|
||||||
|
|
Loading…
Reference in New Issue