fix to artifact diff. add missing file

This commit is contained in:
Evan Jarrett
2026-05-04 23:18:40 -05:00
parent e1483f7aa5
commit 419d05057e
5 changed files with 103 additions and 26 deletions
+2 -3
View File
@@ -293,11 +293,10 @@ function initTabController() {
const content = document.getElementById('tag-content');
const selector = document.getElementById('tag-selector');
if (!content || !selector || !to) return;
const fromDigest = content.dataset.digest;
const currentTag = selector.value;
if (!fromDigest || to === currentTag) return;
if (!currentTag || to === currentTag) return;
window.location.href = '/diff/' + content.dataset.owner + '/' + content.dataset.repo +
'?from=' + encodeURIComponent(fromDigest) + '&to=' + encodeURIComponent(to);
'?from=' + encodeURIComponent(currentTag) + '&to=' + encodeURIComponent(to);
};
window.switchRepoTab = function(tabId) {