Permalink
Browse files

[NEXUS-5388] Do not show 'undefined' for unexposed repositories (Publ…

…ish Url == false)
  • Loading branch information...
1 parent f716acb commit 00a3817c46159ff100145af161c96336103bc08a @nabcos nabcos committed Nov 22, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 nexus/nexus-webapp/src/main/webapp/js/repoServer/RepoMaintPanel.js
@@ -205,7 +205,9 @@ Sonatype.repoServer.RepositoryPanel = function(config) {
header : 'Repository Path',
autoExpand : true,
renderer : function(s) {
- if (/^http(s)?:/.test(s)) {
+ if ( typeof s !== 'string' ) {
+ return '';
+ } else if (/^http(s)?:/.test(s)) {
return '<a href="' + s + ((s != null && (s.charAt(s.length)) == '/') ? '' : '/') + '" target="_blank">' + s + '</a>';
} else {
return '' + s;

0 comments on commit 00a3817

Please sign in to comment.