fix reference to undefined prop for auditors

This commit is contained in:
Jake McDermott 2019-07-18 10:21:43 -04:00
parent fef6e0b191
commit 5b1350db75

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]) {