diff --git a/static/js/controllers.js b/static/js/controllers.js index a94ed8c1e..822c5a751 100644 --- a/static/js/controllers.js +++ b/static/js/controllers.js @@ -699,6 +699,7 @@ function RepoCtrl($scope, $sanitize, Restangular, ImageMetadataService, ApiServi callback(tag_image); // Callback any parent images. + if (!tag_image.ancestors) { return; } var ancestors = tag_image.ancestors.split('/'); for (var i = 0; i < ancestors.length; ++i) { var image = $scope.imageByDBID[ancestors[i]];