Skip to content

Commit

Permalink
Bug 1722815: Handle other image name formats in overview
Browse files Browse the repository at this point in the history
  • Loading branch information
spadgett committed Jul 9, 2019
1 parent c8657b9 commit 38268f3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/scripts/filters/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ angular.module('openshiftConsole')

var slashSplit = imageWithoutID.split("/");
var semiColonSplit;
if (slashSplit.length === 3) {
if (slashSplit.length > 3) {
return imageWithoutID;
}
else if (slashSplit.length === 3) {
semiColonSplit = slashSplit[2].split(":");
return slashSplit[1] + '/' + semiColonSplit[0];
}
Expand Down

0 comments on commit 38268f3

Please sign in to comment.