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,
|
||||
(exportArea, nextExportArea) => {
|
||||
const area = getMessageAreaByTag(exportArea.areaTag);
|
||||
const conf = getMessageConferenceByTag(area.confTag);
|
||||
let conf;
|
||||
if (area) {
|
||||
conf = getMessageConferenceByTag(area.confTag);
|
||||
}
|
||||
if (!area || !conf) {
|
||||
// :TODO: remove from user properties - this area does not exist
|
||||
this.client.log.warn(
|
||||
|
|
Loading…
Reference in New Issue