« get me outta code hell

content: listGroupsByName, listing feature flags - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2023-07-07 12:28:40 -0300
committer(quasar) nebula <qznebula@protonmail.com>2023-07-07 12:39:14 -0300
commitfbbafa606f12b0ecf3ac89918b424f0ec4a8de4e (patch)
tree58b1b4c4adc9ac5e9bbe7d2b85becd61c5dd4d41 /src/page
parent556eda40caf7f3921507d90afc81073bb74fbd43 (diff)
content: listGroupsByName, listing feature flags
Diffstat (limited to 'src/page')
-rw-r--r--src/page/listing.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/page/listing.js b/src/page/listing.js
index c770f825..1db7aa7b 100644
--- a/src/page/listing.js
+++ b/src/page/listing.js
@@ -17,7 +17,10 @@ export const description = `wiki-wide listing pages & index`;
 export function targets({wikiData}) {
   return (
     wikiData.listingSpec
-      .filter(listing => listing.contentFunction));
+      .filter(listing => listing.contentFunction)
+      .filter(listing =>
+        !listing.featureFlag ||
+        wikiData.wikiInfo[listing.featureFlag]));
 }
 
 export function pathsForTarget(listing) {