mirror of
https://github.com/zadam/trilium.git
synced 2024-11-11 09:46:25 +08:00
return only startup bundles for executale notes
This commit is contained in:
parent
b2df622cb6
commit
895bda41b5
1 changed files with 3 additions and 1 deletions
|
@ -36,8 +36,10 @@ 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);
|
||||||
|
|
||||||
|
if (bundle) {
|
||||||
scripts.push(bundle);
|
scripts.push(bundle);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
res.send(scripts);
|
res.send(scripts);
|
||||||
}));
|
}));
|
||||||
|
|
Loading…
Reference in a new issue