mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 12:25:02 +00:00
automod: fix possible error in config preprocessor
This commit is contained in:
parent
94bc60268c
commit
8082752cba
1 changed files with 4 additions and 1 deletions
|
@ -79,7 +79,10 @@ const configPreprocessor: ConfigPreprocessorFn<AutomodPluginType> = options => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const triggerBlueprint = availableTriggers[triggerName];
|
const triggerBlueprint = availableTriggers[triggerName];
|
||||||
triggerObj[triggerName] = configUtils.mergeConfig(triggerBlueprint.defaultConfig, triggerObj[triggerName]);
|
triggerObj[triggerName] = configUtils.mergeConfig(
|
||||||
|
triggerBlueprint.defaultConfig,
|
||||||
|
triggerObj[triggerName] || {},
|
||||||
|
);
|
||||||
|
|
||||||
if (triggerObj[triggerName].match_attachment_type) {
|
if (triggerObj[triggerName].match_attachment_type) {
|
||||||
const white = triggerObj[triggerName].match_attachment_type.whitelist_enabled;
|
const white = triggerObj[triggerName].match_attachment_type.whitelist_enabled;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue