From e5d214a624cb06e8985d63aa073082113f9a1901 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 5 May 2024 21:55:24 -0300 Subject: upd8: don't crash without web routes --- src/upd8.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/upd8.js') 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; -- cgit 1.3.0-6-gf8a5