diff options
author | (quasar) nebula <towerofnix@gmail.com> | 2021-03-03 12:39:09 -0400 |
---|---|---|
committer | (quasar) nebula <towerofnix@gmail.com> | 2021-03-03 12:39:09 -0400 |
commit | 08d94ebcc6ae0ab7a4d28019b3428cb53f0ca1b7 (patch) | |
tree | 5e9b36771a51e002714a5e928a6d81993b8e96ef | |
parent | d0d324f34a9ca399f8e9e8380353abe45f6688ff (diff) |
quick compat fixes when disabling features
-rwxr-xr-x | upd8.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/upd8.js b/upd8.js index 36f634a6..e8befa6a 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. |