Skip to content

Commit

Permalink
Merge pull request #1413 from AllenBW/bug/inaccessible-service-explorer
Browse files Browse the repository at this point in the history
tolowercase of a null does not end well - breaks service explorer
  • Loading branch information
himdel committed Apr 5, 2018
2 parents 0ae3d01 + 2ec974b commit e2235e6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function ComponentController ($state, ServicesState, Language, ListView, Chargeb
function isAnsibleService (service) {
var compareValue = angular.isDefined(service.type) ? service.type : service.name

return compareValue.toLowerCase().indexOf('ansible') !== -1
return compareValue ? compareValue.toLowerCase().includes('ansible') : false
}

function getListActions () {
Expand Down

0 comments on commit e2235e6

Please sign in to comment.