mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 18:50:41 +01:00
return only startup bundles for executale notes
This commit is contained in:
@@ -36,7 +36,9 @@ router.get('/startup', auth.checkApiAuth, wrap(async (req, res, next) => {
|
|||||||
for (const note of notes) {
|
for (const note of notes) {
|
||||||
const bundle = await script.getScriptBundle(note);
|
const bundle = await script.getScriptBundle(note);
|
||||||
|
|
||||||
scripts.push(bundle);
|
if (bundle) {
|
||||||
|
scripts.push(bundle);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
res.send(scripts);
|
res.send(scripts);
|
||||||
|
|||||||
Reference in New Issue
Block a user