fix(registry-selector): unique images in auto suggest (#3425)

pull/3428/head
xAt0mZ 2019-12-03 22:46:03 +01:00 committed by Anthony Lapenna
parent f79dae3e27
commit 2d576394d0
1 changed files with 2 additions and 1 deletions

View File

@ -192,7 +192,8 @@ angular.module('portainer.docker')
};
service.getUniqueTagListFromImages = function (availableImages) {
return _.flatten(_.map(availableImages, function (image) {
return _.uniq(_.flatMap(availableImages, function (image) {
_.remove(image.RepoTags, function (item) {
return item.indexOf('<none>') !== -1;
});