From 08d94ebcc6ae0ab7a4d28019b3428cb53f0ca1b7 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 3 Mar 2021 12:39:09 -0400 Subject: quick compat fixes when disabling features --- upd8.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/upd8.js b/upd8.js index 36f634a..e8befa6 100755 --- a/upd8.js +++ b/upd8.js @@ -2296,7 +2296,7 @@ function writeSharedFilesAndPages({strings}) { "artistData": ${stringifyArtistData()} } `) - ]); + ].filter(Boolean)); } function writeHomepage() { @@ -5314,8 +5314,8 @@ async function main() { } } - flashActData = flashData.filter(x => x.act8r8k); - flashData = flashData.filter(x => !x.act8r8k); + flashActData = flashData?.filter(x => x.act8r8k); + flashData = flashData?.filter(x => !x.act8r8k); artistNames = Array.from(new Set([ ...artistData.filter(artist => !artist.alias).map(artist => artist.name), @@ -5694,7 +5694,7 @@ async function main() { let error = false; pageWriteFns = buildSteps.flatMap(fn => { - const fns = fn(); + const fns = fn() || []; // Do a quick valid8tion! If one of the writeThingPages functions go // wrong, this will stall out early and tell us which did. -- cgit 1.3.0-6-gf8a5