From 895bda41b53dae7d82de3c022b5565269c122124 Mon Sep 17 00:00:00 2001 From: azivner Date: Thu, 8 Mar 2018 23:36:08 -0500 Subject: [PATCH] return only startup bundles for executale notes --- src/routes/api/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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);