Fix bad check for missing areas (by tag)
This commit is contained in:
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user