diff --git a/src/cfg.js b/src/cfg.js index 09a4633..3fcceab 100644 --- a/src/cfg.js +++ b/src/cfg.js @@ -148,6 +148,7 @@ if (config.greetingMessage || config.greetingAttachment) { // newThreadCategoryId is syntactic sugar for categoryAutomation.newThread if (config.newThreadCategoryId) { + config.categoryAutomation = config.categoryAutomation || {}; config.categoryAutomation.newThread = config.newThreadCategoryId; delete config.newThreadCategoryId; }