We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 356ba78 + d6815f3 commit e6fdb73Copy full SHA for e6fdb73
1 file changed
debug_toolbar/statics/js/versions.js
@@ -13,7 +13,7 @@ function pypiIndex() {
13
function link(url) {
14
return `
15
<a href="${url}" target="_blank">
16
- ${$$.truncatechars(url || "", 40)}
+ ${$$.truncatechars(url, 40)}
17
</a>`;
18
}
19
function render(rowVersion, data) {
@@ -31,7 +31,10 @@ function pypiIndex() {
31
32
const status = python.nextElementSibling;
33
status.innerHTML = data.status ? data.status.slice(26) : "";
34
- status.nextElementSibling.innerHTML = link(data.home_page);
+
35
+ if (data.home_page) {
36
+ status.nextElementSibling.innerHTML = link(data.home_page);
37
+ }
38
39
function getData(pypi) {
40
return {
0 commit comments