Merge pull request #4345 from jakemcdermott/fix-4302

fix reference to undefined prop for auditors

Reviewed-by: https://github.com/softwarefactory-project-zuul[bot]
This commit is contained in:
softwarefactory-project-zuul[bot] 2019-07-18 17:07:10 +00:00 committed by GitHub
commit 6bdb106128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ export default ['GetBasePath', '$q', 'Rest', 'i18n',
};
var getActions = appendOauth2ProviderKeys(data.actions.GET);
var getKeys = _.keys(getActions);
var putActions = appendOauth2ProviderKeys(data.actions.PUT);
var putActions = data.actions.PUT ? appendOauth2ProviderKeys(data.actions.PUT) : {};
_.each(getKeys, function(key) {
if(putActions && putActions[key]) {