mirror of
https://github.com/zadam/trilium.git
synced 2024-09-21 16:16:04 +08:00
return only startup bundles for executale notes
This commit is contained in:
parent
b2df622cb6
commit
895bda41b5
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue