From 7b1519e9d06e2ab38d6b8a2c44d144e1f0de46d9 Mon Sep 17 00:00:00 2001 From: Ahmidi Yasser <88626454+dexter21767@users.noreply.github.com> Date: Sat, 1 Mar 2025 06:32:48 +0100 Subject: [PATCH] fix not being able to build without cache (#823) --- lib/cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cache.js b/lib/cache.js index b7cc24f..147b983 100644 --- a/lib/cache.js +++ b/lib/cache.js @@ -21,7 +21,7 @@ const getCached = () => { } needle.get(`https://${config['netlify-domain']}/catalog.json`, config.needle, (err, resp, body) => { - if ((body || [])[0].transportUrl && body[0].transportName && body[0].manifest) { + if ((body || []).length && body[0].transportUrl && body[0].transportName && body[0].manifest) { console.log('loaded old addon catalog') cached.catalog = body } else {