Skip to content

Commit

Permalink
#309 Fix a JS error
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Oct 28, 2020
1 parent 9d2be97 commit e1a4cab
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@ export default class OrganizationConfigsController {

_.forEach(conf.configurationItems, item => {
if(conf.config[item.name] === undefined) {

if (item.defaultValue !== undefined) {
conf.config[item.name] = item.defaultValue;
} else {
conf.config[item.name] = item.multi ? [undefined] : undefined;
}
}
});

return conf;
Expand Down

0 comments on commit e1a4cab

Please sign in to comment.