This commit is contained in:
Joseph Schorr 2015-08-07 15:26:45 -04:00
parent fc74b9569b
commit ff6cd92841

View file

@ -90,7 +90,7 @@ angular.module('quay').directive('headerBar', function () {
DocumentationService.findDocumentation($scope, query.split(' '), function(results) {
if (!$scope.searchVisible) { return; }
var currentResults = $scope.searchResultState['results'];
var currentResults = $scope.searchResultState['results'] || [];
results.forEach(function(result) {
if (currentResults.length < documentSearchMaxResults) {
currentResults.push(result);