From 4b8dc9a5b75f8b47f532f1074b694a78a64b5e40 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Fri, 6 Sep 2024 10:56:07 -0500 Subject: [PATCH] CLDR-17803 site: hide sibling pages (#4026) --- 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]; }