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
No known key found for this signature in database
GPG Key ID: C2C1B501E4EFD994
1 changed files with 4 additions and 1 deletions

View File

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