Oops, fix newscan filter
This commit is contained in:
parent
89bce2c23c
commit
73bc211b94
|
@ -112,10 +112,9 @@ exports.getModule = class NewScanModule extends MenuModule {
|
||||||
newScanMessageArea(conf, cb) {
|
newScanMessageArea(conf, cb) {
|
||||||
// :TODO: it would be nice to cache this - must be done by conf!
|
// :TODO: it would be nice to cache this - must be done by conf!
|
||||||
const omitMessageAreaTags = valueAsArray(_.get(this, 'menuConfig.config.omitMessageAreaTags', []));
|
const omitMessageAreaTags = valueAsArray(_.get(this, 'menuConfig.config.omitMessageAreaTags', []));
|
||||||
const sortedAreas = _.omitBy(
|
const sortedAreas = msgArea.getSortedAvailMessageAreasByConfTag(conf.confTag, { client : this.client } ).filter(area => {
|
||||||
msgArea.getSortedAvailMessageAreasByConfTag(conf.confTag, { client : this.client } ),
|
return area => !omitMessageAreaTags.includes(area.areaTag);
|
||||||
area => omitMessageAreaTags.includes(area.areaTag)
|
});
|
||||||
);
|
|
||||||
const currentArea = sortedAreas[this.currentScanAux.area];
|
const currentArea = sortedAreas[this.currentScanAux.area];
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue