Skip to content
This repository was archived by the owner on Apr 2, 2026. It is now read-only.

Commit 9852e0b

Browse files
Only hide empty hub chart panel for Directory entries
1 parent 894da71 commit 9852e0b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/_main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,8 @@ window.addEventListener("load", function() {
438438
var distributions = hubData.distributions || {};
439439
var hasAnyDist = Object.keys(distributions).some(function(k) { return distributions[k] && distributions[k].length > 0; });
440440
var hasTopEnts = hubData.topEntities && hubData.topEntities.length > 0;
441-
if (!hasAnyDist && !hasTopEnts) {
441+
var isDirectory = hubData.entryName === "Directory";
442+
if (isDirectory && !hasAnyDist && !hasTopEnts) {
442443
var hubPanel = hubChartEl.closest(".chart-panel");
443444
if (hubPanel) hubPanel.style.display = "none";
444445
}

0 commit comments

Comments
 (0)