Fix bad check for missing areas (by tag)
This commit is contained in:
parent
d1f0a12f77
commit
a4261d2d36
|
@ -332,7 +332,10 @@ exports.getModule = class MessageBaseQWKExport extends MenuModule {
|
||||||
publicExportAreas,
|
publicExportAreas,
|
||||||
(exportArea, nextExportArea) => {
|
(exportArea, nextExportArea) => {
|
||||||
const area = getMessageAreaByTag(exportArea.areaTag);
|
const area = getMessageAreaByTag(exportArea.areaTag);
|
||||||
const conf = getMessageConferenceByTag(area.confTag);
|
let conf;
|
||||||
|
if (area) {
|
||||||
|
conf = getMessageConferenceByTag(area.confTag);
|
||||||
|
}
|
||||||
if (!area || !conf) {
|
if (!area || !conf) {
|
||||||
// :TODO: remove from user properties - this area does not exist
|
// :TODO: remove from user properties - this area does not exist
|
||||||
this.client.log.warn(
|
this.client.log.warn(
|
||||||
|
|
Loading…
Reference in New Issue