commit
						7b99a594f4
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		|  | @ -22,12 +22,16 @@ angular.module('quay').directive('tagSpecificImagesView', function () { | ||||||
| 
 | 
 | ||||||
|       $scope.getImageListingClasses = function(image) { |       $scope.getImageListingClasses = function(image) { | ||||||
|         var classes = ''; |         var classes = ''; | ||||||
|  |         if (!$scope.repository) { | ||||||
|  |           return ''; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         if (image.ancestors.length > 1) { |         if (image.ancestors.length > 1) { | ||||||
|           classes += 'child '; |           classes += 'child '; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         var currentTag = $scope.repository.tags[$scope.tag]; |         var currentTag = $scope.repository.tags[$scope.tag]; | ||||||
|         if (image.id == currentTag.image_id) { |         if (currentTag && image.id == currentTag.image_id) { | ||||||
|           classes += 'tag-image '; |           classes += 'tag-image '; | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Reference in a new issue