Oops, fix newscan filter

This commit is contained in:
Bryan Ashby 2018-07-07 20:03:03 -06:00
parent 89bce2c23c
commit 73bc211b94
1 changed files with 3 additions and 4 deletions

View File

@ -112,10 +112,9 @@ exports.getModule = class NewScanModule extends MenuModule {
newScanMessageArea(conf, cb) {
// :TODO: it would be nice to cache this - must be done by conf!
const omitMessageAreaTags = valueAsArray(_.get(this, 'menuConfig.config.omitMessageAreaTags', []));
const sortedAreas = _.omitBy(
msgArea.getSortedAvailMessageAreasByConfTag(conf.confTag, { client : this.client } ),
area => omitMessageAreaTags.includes(area.areaTag)
);
const sortedAreas = msgArea.getSortedAvailMessageAreasByConfTag(conf.confTag, { client : this.client } ).filter(area => {
return area => !omitMessageAreaTags.includes(area.areaTag);
});
const currentArea = sortedAreas[this.currentScanAux.area];
//