Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
return only startup bundles for executale notes
azivner895bda41b53d
diff --git a/src/routes/api/script.js b/src/routes/api/script.jsindex 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);