Skip to content

Build your personal knowledge base with Trilium Notes

return only startup bundles for executale notes

azivner895bda41b53d
diff --git a/src/routes/api/script.js b/src/routes/api/script.js
index a94233a9ce..fab7ef76bd 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);