diff --git a/src/routes/api/script.js b/src/routes/api/script.js index a94233a9c..fab7ef76b 100644 --- a/src/routes/api/script.js +++ b/src/routes/api/script.js @@ -36,7 +36,9 @@ router.get('/startup', auth.checkApiAuth, wrap(async (req, res, next) => { for (const note of notes) { const bundle = await script.getScriptBundle(note); - scripts.push(bundle); + if (bundle) { + scripts.push(bundle); + } } res.send(scripts);