diff --git a/static/js/directives/ui/entity-search.js b/static/js/directives/ui/entity-search.js index 633ff4af7..4611a81ae 100644 --- a/static/js/directives/ui/entity-search.js +++ b/static/js/directives/ui/entity-search.js @@ -250,10 +250,8 @@ angular.module('quay').directive('entitySearch', function () { if ($scope.isAdmin && isSupported('robot')) { classes.push('robot accounts'); } if ($scope.isOrganization && isSupported('team')) { classes.push('teams'); } - if (classes.length > 1) { - classes[classes.length - 1] = 'or ' + classes[classes.length - 1]; - } else if (classes.length == 0) { - return '
No matching entities found
'; + if (classes.length == 0) { + return '
No matching entities found
'; } var class_string = '';