Skip to content

Commit

Permalink
fix(config): not overwriting if field is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
SCDerox committed Oct 11, 2022
1 parent c94e365 commit e74c9c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/functions/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ async function checkModuleConfig(moduleName, afterCheckEventFile = null) {
}
if (typeof configElement[field.field_name] === 'undefined') {
configElement[field.field_name] = field.default;
ow = true;
return res(configElement);
} else if (field.type === 'keyed' && field.disableKeyEdits) {
for (const key in field.default) {
Expand Down

0 comments on commit e74c9c9

Please sign in to comment.