« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/upd8.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/upd8.js b/src/upd8.js
index e135e056..1585fdd4 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -2216,8 +2216,10 @@ async function main() {
   }
 
   wikiData.wikiInfo.searchDataAvailable =
-    webRouteSources
-      .some(({to}) => to[0].startsWith('searchData'));
+    (webRouteSources
+      ? webRouteSources
+          .some(({to}) => to[0].startsWith('searchData'))
+      : null);
 
   if (stepStatusSummary.performBuild.status === STATUS_NOT_APPLICABLE) {
     return true;