From 41024f217c75cdd470c4ccf968d91a142860838c Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Fri, 6 Sep 2024 09:59:02 -0500 Subject: [PATCH] CLDR-17803 site: hide sibling pages only show subpages of an index page, not siblings --- docs/site/assets/js/cldrsite.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/site/assets/js/cldrsite.js b/docs/site/assets/js/cldrsite.js index e229fb988b3..66d1649886e 100644 --- a/docs/site/assets/js/cldrsite.js +++ b/docs/site/assets/js/cldrsite.js @@ -148,9 +148,13 @@ const app = Vue.createApp( if (dirPages) { // our page is an index -so, show the subpages instead of the siblings. dirForPage = dirPages[0]; // the adjusted index - } - } - let thePages = this.tree?.value?.allDirs[dirForPage].pages ?? []; + } else { + return []; // no sibling pages; + } + } else { + return []; // no sibling pages + } + let thePages = this.tree?.value?.allDirs[dirForPage].pages ?? []; if (dirForPage === "") { thePages = [...thePages, ...this.tree?.value?.allDirs["index"].pages]; }