Fix bad check for missing areas (by tag)

This commit is contained in:
Bryan Ashby
2022-11-27 21:07:56 -07:00
parent d1f0a12f77
commit a4261d2d36

View File

@@ -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(